Skip to content

Instantly share code, notes, and snippets.

@RhysC
Created April 13, 2011 13:21
Show Gist options
  • Save RhysC/917527 to your computer and use it in GitHub Desktop.
Save RhysC/917527 to your computer and use it in GitHub Desktop.
Start or stop all my nirvana services
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