PowerTip: Find All of the Common Approved PowerShell Verbs

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon