I wrote a post in the past, which you can see here, about creating a GUI for a Powershell script. That info is still valid but the catch with that one is that you need Visual Studio, Community Edition is just fine for it. Recently I changed out my laptop and found it to be a good opportunity to start fresh and just install the items that I need. So, with my new build I cut back on a lot of the software and components to keep it slim…its a 1TB SSD, I don’t need slim but it’s an interesting challenge. When it comes to my Powershell config I like using the built in ISE but by now Visual Studio Code is my go to if for no other reason than it makes things easier. Let’s not discuss how many IDE’s I had installed before and just focus on what is there now…I’m not a pack rat stop judging me!
Since I had VS Code I didn’t want to mess around with a full VS install which means making a WPF just got a bit harder. I don’t often end up using GUIs but not all of us are comfortable with the command window and lets be honest, sometimes to get the info you want you have to dictate what should be entered. So, without VS how do we accomplish that? No, before you say it I will stop you, there is no way I am going to write all that by hand.
Enter…PoshGUI!
he beauty about a GUI for a Powershell is that 9 times our of 10 (just based on my experience) they are pretty simple and straight forward. The beauty of this website, the online editor lets you create something simple and straight forward. If you have ever used any kind of GUI editor this is just as easy, drag and drop and let it create your code. You can even do a bit of coding in the web editor if you like. Honestly, not a feature I use too much but it can come in handy.
At the end of the day the majority of your Powershell scripts do not need a GUI but occasionally one will come in handy and when it does this is about the easiest way I can think of to go about creating one.