Basic Windows GUI for running from a list of Powershell scripts

Hi All,

I am trying to put together a little GUI to be used by my team so that we can run a selection of PS scripts at the click of a few buttons.

The idea i have seen in an old job several years back was something sort of like this,

Basically a page with Buttons and text box descriptions,

then a text file or even integrated for a task list that I can edit the Function and Description of the buttons.

Has anyone seen anything like this, i am new to programming and cant afford to spend several hundred for PowerStudio i was hoping to find a easier way that I can edit someone elses work?

thanks
ideas
IT_Support PrivateAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
Are you looking for some sample Powershell code of the front end UI app, or a freeware third party solution that provides this sort of menu capability?


»bp
0
IT_Support PrivateAuthor Commented:
Happy to explore either/any possibiliies that would achieve the ability to run a selection of scripts stored in a certain subfolder.
0
Bill PrewIT / Software Engineering ConsultantCommented:
To give you an idea of what's possible in Powershell, take a look at my accepted solution to this earlier question.  The UI content is different of course, but it might give you an idea of what is possible in PS, and what the code looks like.  Maybe help give you and idea if you want to bite that off.


I'll follow up with a couple of other non PS options in a minute.


»bp
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Bill PrewIT / Software Engineering ConsultantCommented:
One of my favorite small freeware "launcher" type utilities has always been QSEL.  It's simple enough to be easy to use, but has enough features to be valuable.  Give it a look and see what you think.  Might not be exactly what you were imagining, but might be something tht could get you the functionality without much work.



»bp
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IT_Support PrivateAuthor Commented:
Thanks
0
Bill PrewIT / Software Engineering ConsultantCommented:
And if you ever do see a need for a Powershell UI, take a look at this site, it's a pretty cool way to graphically lay out a UI and it generates PS code to produce it.  Kinda cool...



»bp
2
IT_Support PrivateAuthor Commented:
Thanks, Ye i did check out that site though as im not that familiar with powershell yet I think Qsel will be perfect for now and I will engage back on EE for a more customised solution once i get my act together.
0
Bill PrewIT / Software Engineering ConsultantCommented:
Great, good luck.


»bp
0
IT_Support PrivateAuthor Commented:
Hi Bill,
I was just playing around with the qsel again, and wondering, (and understand its not your creation though was wondering i you may happen to know the format/use for it)
Regarding the Paramater and Directory field , I am trying to run some scripts that i suspect may require admin powersehll session to run,
So, is there a certain format i can put in the paramater box such as "Run/As..." to make it use an admin powershell Session, or is it for something else.
I assume it is probably better to incorporate the get-credentials into the initial script?

Also, the Starting Directory, what would be the purpose of that,
Eg, i have a script to get HotFix ID;s that I'm trying to make output to a temp text file, is there a purpose of using the Starting Directory as the "Temp" folder or what would be the purpose of Starting Directory if I am already specifying where the script is stored.
get-wmiobject Win32_QuickFixEngineering | sort -property HotFixID | select -property HotFixID, Description | out-file C:\Scripts\output.txt

Open in new window


In the meantime, ill see what i can find out on the Qsel website for further details. Thanks
0
Bill PrewIT / Software Engineering ConsultantCommented:
Offline for a week, will check back.
0
Bill PrewIT / Software Engineering ConsultantCommented:
I don't think QSEL has any way to elevate privs in it before launching a program.  I suspect you could build a front end Posh script that did that though, and then executed a script passed to it as a parm perhaps.

As far as the other fields, take a look at the CHM file that comes with QSEL, it has decent Help info on the app.  An excerpt from it:

  • Parameters (optional): Some programs may accept switches, file names etc.. Enclose file names in quote marks if necessary!
  • Directory (optional): By default the directory of the launched program is assumed.

The first is just a place where you can specify any command line parms or switches to pass to the Program that you are launching.

The second is the directory that will be set as the current directory when the Program is launched.  Some applications expect a certain folder to be the current folder when they launch, for accessing files, etc.


»bp
1
IT_Support PrivateAuthor Commented:
THANks. Much appreciated.
Until i get more familiar with ps i have simply incorporated the get-credentials into the individual scripts where required.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.