February 3rd, 2013

PowerTip: Find All of the Common Approved PowerShell Verbs

Doctor Scripto
Scripter

Summary: Learn how to find all of the approved Windows PowerShell verbs that are in the Common group.

Hey, Scripting Guy! Question I want to produce a list of all approved common Windows PowerShell verbs. How do I do it?

Hey, Scripting Guy! Answer This answer comes from my new Windows PowerShell 3.0 Step by Step Microsoft Press book.

Use Get-Verb and pipe the results to the Where-Object cmdlet. Match the group property with the word “common” and send the results to Format-Wide. The command is shown here.

Get-Verb | where group -match ‘common’ | Format-Wide verb -auto

The command and associated output from the command are shown here.

11:09 C:\> Get-Verb | where group -match ‘common’ | Format-Wide verb -auto

Add       Clear     Close     Copy      Enter    Exit     Find     Format   Get

Hide      Join      Lock      Move      New      Open     Optimize Pop      Push

Redo      Remove    Rename    Reset     Resize   Search   Select   Set      Show

Skip      Split     Step      Switch    Undo     Unlock   Watch

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.