Saturday, January 12, 2008

Get without a verb


Did you know that you can call any "Get" verb cmdlet without specifying it? (via Guy's Ezine)

 

# Get-Process
PS > process Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName ------- ------ ----- ----- ----- ------ -- ----------- 15 2 21532 4092 29 3.92 2404 _IISCHAgent 65 3 1144 1468 33 3.25 1988 Agent 40 3 1052 1432 30 2.91 3548 AGRSMMSG

 

PS > service

Status   Name               DisplayName
------   ----               -----------
Stopped  Alerter            Alerter
Running  ALG                Application Layer Gateway Service
Stopped  AppMgmt            Application Management

1 comment:

Dips Recipes said...

Apppreciate your blog post