Create a PowerShell report of Windows services, startup types and current states for infrastructure monitoring and audit.
01 Collect services
06 Review changes Compare reports over time to identify services that unexpectedly stop or change configuration.
Use Get-Service to enumerate services and capture Name, DisplayName and Status.
Collect services
Add startup information
Use Get-CimInstance Win32_Service when you need StartMode, StartName or executable path details.
Filter critical services
Maintain a list of services that should be running on each server role.
Flag exceptions
Return a status such as OK, Stopped or Missing when comparing the expected service list with actual state.
Export the report
Write the result to CSV or convert it to HTML for email reporting.
Review changes
Compare reports over time to identify services that unexpectedly stop or change configuration.
Explore more TechRunbook guides
Continue with practical infrastructure troubleshooting, PowerShell scripts and operational runbooks.
Browse all articles →