Monday, January 19, 2009

match and go

to store configuration information

PS R:\> get-service
| where { $_.Name -match "w32time" }


Status Name DisplayName
------ ---- -----------
Stopped W32Time Windows Time

` $_ ` contains the current pipeline object.
if ` -match "" `, then it list out all.

No comments:

Post a Comment