June 30th, 2016

PowerTip: Get a GUI interface for any PowerShell cmdlet

Doctor Scripto
Scripter

Summary: Use the Show-Command to build PowerShell cmdlets.

Hey, Scripting Guy! Question I ran into a problem. Some cmdlets have too many parameters to list. Is there an easy way to build a cmdlet with its parameters for the console?

Hey, Scripting Guy! Answer You’ll love this trick! Just use the Show-Command cmdlet with any PowerShell cmdlet to get a GUI interface. In the following example, we use this with the Import-MDTDriver cmdlet.

When you are done, you will have three options: Run, Copy (for the clipboard), or Cancel.

Show-Command Import-MDTDriver

The Doctor

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.

Feedback