Changing Service Start Mode the PowerShell Way

Share |

Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Powershell Plus

13 Free SQL Tools from Idera

Free Ebook: Mastering Powershell

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!

Posted Mar 04 2011, 08:00 AM by ps1
Copyright 2012 All rights reserved.