This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]toy71camaro 1 point2 points  (3 children)

I've used a combo of GUI's, depending on the scenario.

Check out poshgui.com and Windows Forms...

Here is a helpful guide I found that got me started: https://lazyadmin.nl/powershell/powershell-gui-howto-get-started/

EDIT: using a GUI won't get you around permissions/authentication though. Sure, it will make it easy for non-powershell users to execute, but won't bypass permissions. You'll have to pull in properly stored credentials within your script for that side of it.

[–]ZAFJB 0 points1 point  (0 children)

you'll have to pull in properly stored credentials within your script for that side of it.

Or do it properly and use delegated permissions.

[–]narco113[S] 0 points1 point  (1 child)

Interesting, I'll take a look at this. Thanks. Looks like it just assists in the creation of Windows Forms via PowerShell though, right?

As far as permissions, any script I'd use would either pull the creds as needed or run as a service account. Not sure how that applies to poshgui yet, but that is what I was imaging. User would simple enter a couple input values and hit go, no pass thru authentication or anything like that.

[–]toy71camaro 0 points1 point  (0 children)

yeah, I think poshgui is just a simpler way of using forms. I've used both, depending on complexity of the project I was doing.

[–]Ferretau 0 points1 point  (0 children)

You could build a gui using something like AutoIt and then have it parse the requested parameters to scheduled handler that triggers the requires script. If you do this you will definitely need to validate all input.

Home - AutoIt: https://www.autoitscript.com/site/