r/PowerShell • • Jul 07 '19

Tutorial on creating Powershell applications using Visual Studio

https://domruggeri.com/2019/07/06/creating-extensive-powershell-gui-applications-part-1/
197 Upvotes

29 comments sorted by

View all comments

4

u/[deleted] Jul 07 '19

Great article. I suppose it depends on how complex you need a GUI to be. I actually learned this method a while ago (thanks to a PluralSight course) and it quickly became not worth the time and hassle. I find that many of my scripts, if they do have a use case for a GUI, require something simple. Just enough for a non-powershell expert to use with the help of a quick README.

For example, I just built a new database migration tool that is somewhat specific to my company and our environment. It also automates the SQL high availability config. We're handing this utility off to some other teams so they can simplify notify us and do this themselves. Some of these users aren't seasoned PowerShell folks, so plugging in up to 8 different parameters, then entering a credential is a little tedious. Using the AnyBox module, I built some very basic GUIs, didn't have to touch visual studio, and it works great. It gives them a few options if they want to start at various points in the process, then opens a parameter window which makes it like filling out a form. They can review and edit any of their params before submitting. This module also gives another layer of controlling user input. If any of you need SIMPLE GUIs... Try this module.

2

u/Ckarini Jul 07 '19

Hm, that's really interesting, I'll take a look at that. Thanks!