Flappy Shoot

Monday, March 29, 2010

How to find startup type of a service in Powershell.

Get-Service cmdlet does not have a property to find the startup type of a service. So we need to use Get-WMIObject.
(Get-WmiObject Win32_Service -filter "Name='W32Time'").StartMode

Reference: http://www.bhargavs.com/index.php/powershell/2009/06/powershell-get-service-startuptype/

No comments: