Categories:

The services in Windows can be listed using the current script.

Get-WmiObject win32_service -Filter "NOT PathName LIKE '%C:\\Windows%'" | select Name, DisplayName, State, PathName

The service list can be exported to a file.

Get-WmiObject win32_service -Filter "NOT PathName LIKE '%C:\\Windows%'" | select Name, DisplayName, State, PathName | Export-Csv -path "C:\temp\services.csv" 

Tags:

7,392 Responses

Leave a Reply