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?
 
Bill PrewCommented:
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
 
Bill PrewCommented:
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
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Bill PrewCommented:
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
 
IT_Support PrivateAuthor Commented:
Thanks
0
 
Bill PrewCommented:
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 PrewCommented:
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 PrewCommented:
Offline for a week, will check back.
0
 
Bill PrewCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.