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:

2 Responses

  1. I was extremely pleased to discover this great site. I want to to thank you for ones time just for this wonderful read!! I definitely liked every little bit of it and i also have you bookmarked to look at new information in your blog.

Leave a Reply

Your email address will not be published. Required fields are marked *