Created
April 13, 2011 13:21
-
-
Save RhysC/917527 to your computer and use it in GitHub Desktop.
Start or stop all my nirvana services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Stop-Nirvana{ | |
Get-Service | | |
Where {($_.Name -like "*nirvana*") -and ($_.Status -ne "Stopped")} | | |
Stop-Service | |
} | |
function Start-Nirvana{ | |
Get-Service | | |
Where {($_.Name -like "*nirvana*") -and ($_.Status -eq "Stopped")} | | |
Start-Service | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment