Changing Service Start Mode the PowerShell Way

by Mar 4, 2011

When you list services with Get-Service, you will find that a lot of properties may seem to be missing. You can still set such properties when you pipe a service to Set-Service. The following code will change the start mode of the Spooler service (provided you have sufficient privileges):


Get-Service spooler | Set-Service -StartupType Automatic


Twitter This Tip!
ReTweet this Tip!