Changing Service Start Mode the PowerShell Way

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

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 PowerShell.com. All rights reserved.