Skip to content

Instantly share code, notes, and snippets.

@altrive
Created February 3, 2014 21:39
Show Gist options
  • Save altrive/8792961 to your computer and use it in GitHub Desktop.
Save altrive/8792961 to your computer and use it in GitHub Desktop.
[Linq.Enumerable]::Any((Get-Service), [Func[object, bool]]{ param ($p) $p.Status -eq "Running" })
[Linq.Enumerable]::Where((Get-Service), [Func[object, bool]]{ param ($p) $p.Status -eq "Running" })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment