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:
Post a Comment