If you want to find out startup type of a service using Get-Service cmdlet, you are out of luck. Get-Service cmdlet does not have StartupType property. Set-Service however does. So how can you find out the startup type of a service using powershell?
You can use Get-WmiObject.
(Get-WmiObject Win32_Service -filter "Name='W32Time'").StartMode |
Once you determine the startup type of desired service, you can change it using Set-Service cmdlet:
Set-Service W32Time -StartupType Manual |
Thanks. very helpful