Monday, January 19, 2009

something like "net"

to list out all services that are currently running, whose displayName is something like "net"

PS R:\> get-service
| where { $_.status -eq "running" -and $_.displayName -like "*net*" }

Status Name DisplayName
------ ---- -----------
Running clr_optimizatio... .NET Runtime Optimization Service v...
Running LmHosts TCP/IP NetBIOS Helper
Running Netman Network Connections
Running Nla Network Location Awareness (NLA)

No comments:

Post a Comment