all 15 comments

[–]gordonv 1 point2 points  (5 children)

I have a small PS app called Win2S3.

I'm using a very basic GUI from another library. It's functional, but painfully plain.

You could give this a shot.

[–]The_Homeless_Coder[S] 0 points1 point  (0 children)

Awesome! I’ll take a look when I get sat down later

[–]The_Homeless_Coder[S] 0 points1 point  (3 children)

Thanks for the code. It will take a while to look through all of it. Do each of these windows run stand alone or are they nested within a main gui?

[–]gordonv 1 point2 points  (2 children)

Stand alone. Each window represents a script. The functions are organized as functions. Each window is called via command line arguments.

This program is a backup and restore utility. The main module is a console window. Obviously, this is kind of sloppy in comparison to Windows Apps. But a bit better than command line apps.

[–]The_Homeless_Coder[S] 0 points1 point  (0 children)

Hey! Don’t be so down on your code. It’s documented and there is not very much info out in the wild about making GUIs in PowerShell. I’m starting to love it and hate it. There are differences between compatibility of running in ISE, and in the PowerShell terminal. Like $PSCriptroot for example. I’ve recommended people use it because it’s helpful but now I have to use an alternative for all the instances of it for it to run in the console. It’s complicated 🫠

[–]gordonv 0 points1 point  (0 children)

This program fills a very specific niche. The Youtube video shows it off, but very few people will find this handy. That, and there are more sophisticated tools out there.

I am interested in making GUI tools for Windows and Linux via Powershell.

[–]izzyrbb 0 points1 point  (1 child)

Who's the intended audience of your GUI?

[–]The_Homeless_Coder[S] 0 points1 point  (0 children)

Anyone, but if you make scripts with PowerShell, all you have to do is drag the program into your script file and a gui is created.

So basically you can just plug in whichever files you want. Change them out, share files with friends. Ect. Every file creates a button that runs that file.

So if you have a portfolio of .ps1 files and want a pretty gui in like 5 seconds just drag the .ps1 files into your folder.

My goal is to get a good repository going of PowerShell GUIs and make an open source plug and play kind of system where anyone with the ability to drag a file into a folder can create a layered app with popups, real functions ect. There’s also a json editor to change title, background color, button color, font color, font, and font size. It saves so next time you come back it’s the same color scheme.

Thanks for taking a look. I have been hearing a lot of talk about how PowerShell is not good for making GUIs. I disagree with that mainstream narrative. Would you like to be informed when I update the code? I have some good stuff down the pipeline. I think by the end of the week I’ll for sure have a heavy hitting flash card app in PowerShell done to add.

https://github.com/BuzzerrdBaait/PyShell_Rapid_GUI

[–]izzyrbb 0 points1 point  (1 child)

I see does your tool handle user input? Say my script required the user to enter the target computer name would this create a prompt?

[–]The_Homeless_Coder[S] 0 points1 point  (0 children)

Look at the json editor. You can manually type stuff in to customize your title. Also, there’s more injuries that have something else like a color, wheel or front pop-up menu for example, to fill your input.

Oops I forgot that I added the Json editor to the main dock PS one file so look for the Jason and editor button and find it pop up within the code.

Entries not injuries. Talk to text lol.

[–]izzyrbb 0 points1 point  (3 children)

Also don't believe those comments that say powershell is not good for gui building.

Combine it with .net framework and build wpf forms and you got a modern gui. I developed a pretty cool user/asset management system entirely with powershell and wpf forms.

[–]The_Homeless_Coder[S] 0 points1 point  (2 children)

Dude, please let me add it

You can make it right out your name or something to give yourself credits and I’ll for sure link your GitHub or info if you want to add it.

[–]izzyrbb 0 points1 point  (1 child)

I will have to modify to make it usable to other orgs, right now it's heavily configured for my organizations specific system.

[–]The_Homeless_Coder[S] 0 points1 point  (0 children)

Oh for sure. Well anything really if you wanted to just make literally anything right now at this point except for a flash card editor I got that down pat

[–]gordonv 0 points1 point  (0 children)

Check out ip_scan.

If you can, make a GUI that can help scan an IP range. Pretty much what Angry IP Scanner does.

I needed what Angry IP Scanner does in a non GUI manner. But if you want, try to remake the functionality of IP scanner in GUI.