Show-Command Creates PowerShell-Code for You

PowerTip of the Day, from

Show-Command Creates PowerShell-Code for You

In PowerShell 3.0, there is a cool new cmdlet called Show-Command:

PS> Show-Command Get-Process

It works both in the console and the ISE editor, and when you specify a   cmdlet, a dialog window opens and shows a form that helps you discover and   fill in the cmdlet parameters. Once done, click Copy, then Cancel, and the   complete command line code is available from the clipboard. To insert it into   the console, for example, simply right-click.

The dialog window produced by Show-Command also shows the different   parameter sets (groups of parameters) a cmdlet supports, so you never again   run into issues where you accidentally mix parameters from different   parameter sets.
Share this tip on: facebook |   twitter |   linkedin


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s