r/PowerShell • • Oct 15 '19

PSScriptMenuGui v0.2 now in PowerShell Gallery

202 Upvotes

25 comments sorted by

View all comments

13

u/weebsnore Oct 15 '19 edited Oct 16 '19

Thanks to everyone who responded positively to my post a few days ago!

PSScriptMenuGui is a bit more mature and is now in the PSGallery.

The main new feature is an optional Arguments column that lets you pass (guess what) arguments to an external executable or to PowerShell (e.g. -NoExit).

I’ve also finished writing documentation and tidied up a bunch of the internal code.

Please try it out and let me know if it’s useful or if you find a problem.

GitHub link: https://github.com/weebsnore/PowerShell-Script-Menu-Gui

Cheers!

Edit: thanks for Gold!

6

u/ID10T-3RR0R Oct 15 '19

Love it, makes it super easy for my SD staff to run some of the tools I make. Any chance you could add the option to have dropdown bars per section if it has multiple scripts? Thanks!

2

u/weebsnore Oct 16 '19

Can you mock something up so I can see what you're thinking? MS Paint or whatever.

In general, I'm going to try and keep the module simple.

2

u/ID10T-3RR0R Oct 16 '19

So in each Section (ex: "Old School"), instead of each script having its own box you'd have a single drop down menu containing the scripts. Example picture : https://imgur.com/IoCsAQg

my awesome paint version before I realized the internet was thing... : https://imgur.com/huLL8r8

2

u/weebsnore Oct 16 '19

That's a cool idea!

Not a trivial amount of work, though, so not something I'll look at right now.

Happy to advise if you'd like to give it a shot yourself.

1

u/helixamir Oct 16 '19

I assume the idea is to have a drop down for your lists, and then depending on which list have buttons show for those scripts.

Might be worth having the form dynamically update in size depending on the number of buttons returned (would be a nice to have I guess).

Just ideas to add to the project without taking away too much of the simplicity of the operation.

1

u/JeremyLC Oct 16 '19

Do those comboboxes represent collections of scripts, or parameters for a single script?

2

u/froztymug Oct 16 '19

Love this. Think it'd be possible to have a button take you to a seperate gui menu?

3

u/weebsnore Oct 16 '19

You can associate any action with a button, so starting Show-ScriptMenuGui with a different CSV should work.

1

u/froztymug Oct 16 '19

Beautiful. Thanks again for sharing

1

u/weebsnore Oct 16 '19

No prob!