PowerTip: Get a GUI interface for any PowerShell cmdlet

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

Comments (3)

  1. Kristoffer says:

    It would be nice if these examples could include images as well. I’m usually on my phone or tablet when reading blogs, so I can’t test out the commands.

    1. @Kristoffer – I included an example of the Show-Command window with my script on the Exchange Team blog site, as I was demonstrating the use of Parameter Sets. Take a look and hopefully this will help: https://aka.ms/messageprofilescript

  2. @Kristoffer

    Full blog posts will usually have a picture or two, Powertips are meant to be “quick and simple” – usually no pictures provided.

    If you ever need a screen shot. Feel free to reach out! I don’t mind spending some extra time to help or maybe expand upon a Powertip into something more interesting as an article!

    Thanks for the feedback
    Honorary Scripting Guy

Skip to main content