Monday, January 9, 2012

Change Service Start Mode the PowerShell Way

 

 

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

 

PowerTip of the Day, from PowerShell.com

 

Thanks

No comments:

Post a Comment