Use PowerShell to get Service Auto-Start Status Along with Human Readable Service Name

This falls into the “Come on Microsoft” category.

I have been writing a script that will gather a bunch of information from servers, and returns an object with the information.  Part of what I’m gathering is the servers that are set to auto start, and have their corresponding service stopped.

While you can get a list of services that meet part of this criteria like this:

The obvious problem here is that this will not return services that are set to. You can run the following command to find the service name (not the human friendly name above) as well as the startup type using the command below

Now, if only Microsoft allowed us get all 3 (Service Descriptive Name, Service Status, Autostart Status) in one command, that would be great!  Until they get around to it, you can use this command:

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright VirtJunkie.com © 2020