Monday, January 19, 2009

restart multiple services

to restart multiple services by getting a list of services, filter them, and then perform the restart

PS> Get-Service | Where-Object -FilterScript {$_.CanStop} | Restart-Service

No comments:

Post a Comment