We all love PowerShell and know how awesome it is. But not
everyone we work with is as willing to drop to the shell as we are. The good
news is there is a very easy way to give them the GUI they think they need.
Write your advanced function like you already do and have them run it with
Show-Command.
Show-Command Set-Service |
This beautiful little command pops up and asks them for the
information needed to run the command. Give it a try with Show-Command
Set-Service.
Not only are the required values marked, you even get a drop down
box for some options. This works if you target *.ps1 files too.
As cool as this is, Show-Command gets better. Run it on its
own and it gives you a list of all commands on the system. The filter makes it
very easy to find what you are looking for.
No comments:
Post a Comment