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

19

u/StartingOverAccount Jul 07 '19 edited Jul 07 '19

OK so this is one those thing I've wondered about a few times. Why would anyone create a GUI using Powershell (for a production task)? I see these posts every once in a while in forums and it just doesn't make sense. This tutorial is with Visual Studio. If you have VS why not just use C# or (shudder) VB? You'll get a much nicer UI, built in error handling, mult-threading (if needed).

This is one of those things just because you can, should you.

(yeah I've setup a couple forms on PS just for the fun factor)

Edit: The wondering is more out of curiosity. I don't have strong opinions for or against it just there are better ways to create a UI

2

u/northendtrooper Jul 09 '19

I work in the govt sector and they basically block any and all compiled code, including .exe's. Which leave very little left. My job entails a lot with Active directory and machine scripts to repair broken software. We've used .hta's in the past but today's world with run-spaces and multi-threading is a god send for 10000s of objects to be created/moved/removed/updated/etc. Powershell just fits the bill.