![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Wrapping PowerShell Scripts In A GUI Interface I am fairly new to PowerShell and was looking for a way to take the scripts I have created in PowerShell and provide a nice GUI interface for our end users. For example, a screen which would perhaps have a nice GUI that would ask for an end users response, or a button that would launch a PowerShell script to find all of the disabled users in AD. In our company, we have some power users who don't mind seeing command line responses, but there is also a great number who have come to expect a nice crisp screen, with focussed menu viewing areas to respond to, or to find valuable data. One of the answers I found when working with VB scripting was using the HTML Application, where you can create a nice GUI for user commands, or responses, (see the article in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up in a GUI interface", http://www.microsoft.com/technet/scr...tutorial1.mspx It would be nice to see this same type of approach with PowerShell. Any ideas if this can be done with PowerShell? Anybody's help would be much appreciated. Thanks - |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface Hello GregHMI, Quote: > I am fairly new to PowerShell and was looking for a way to take the > scripts I have created in PowerShell and provide a nice GUI interface > for our end users. For example, a screen which would perhaps have a > nice GUI that would ask for an end users response, or a button that > would launch a PowerShell script to find all of the disabled users in > AD. In our company, we have some power users who don't mind seeing > command line responses, but there is also a great number who have come > to expect a nice crisp screen, with focussed menu viewing areas to > respond to, or to find valuable data. One of the answers I found when > working with VB scripting was using the HTML Application, where you > can create a nice GUI for user commands, or responses, (see the > article in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up > in a GUI interface", > http://www.microsoft.com/technet/scr...s/tutorial1.ms > px > > It would be nice to see this same type of approach with PowerShell. > Any ideas if this can be done with PowerShell? > > Anybody's help would be much appreciated. > > Thanks - > http://www.codeproject.com/useritems...PowerShell.asp Karl |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface have a look at PowerGUI www.powergui.org -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "Karl Mitschke" wrote: Quote: > Hello GregHMI, > Quote: > > I am fairly new to PowerShell and was looking for a way to take the > > scripts I have created in PowerShell and provide a nice GUI interface > > for our end users. For example, a screen which would perhaps have a > > nice GUI that would ask for an end users response, or a button that > > would launch a PowerShell script to find all of the disabled users in > > AD. In our company, we have some power users who don't mind seeing > > command line responses, but there is also a great number who have come > > to expect a nice crisp screen, with focussed menu viewing areas to > > respond to, or to find valuable data. One of the answers I found when > > working with VB scripting was using the HTML Application, where you > > can create a nice GUI for user commands, or responses, (see the > > article in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up > > in a GUI interface", > > http://www.microsoft.com/technet/scr...s/tutorial1.ms > > px > > > > It would be nice to see this same type of approach with PowerShell. > > Any ideas if this can be done with PowerShell? > > > > Anybody's help would be much appreciated. > > > > Thanks - > > > Take a look at this: > > http://www.codeproject.com/useritems...PowerShell.asp > > Karl > > > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface Karl, Thanks for the information. I am not as familar with C# programming, but that is very close to what I was looking for. Perhaps I won't be able to find something like I mentioned in the Technet article: http://www.microsoft.com/technet/scr...tutorial1.mspx I may need to get more creative and try working with the information you gave me. Thanks - Greg "Karl Mitschke" wrote: Quote: > Hello GregHMI, > Quote: > > I am fairly new to PowerShell and was looking for a way to take the > > scripts I have created in PowerShell and provide a nice GUI interface > > for our end users. For example, a screen which would perhaps have a > > nice GUI that would ask for an end users response, or a button that > > would launch a PowerShell script to find all of the disabled users in > > AD. In our company, we have some power users who don't mind seeing > > command line responses, but there is also a great number who have come > > to expect a nice crisp screen, with focussed menu viewing areas to > > respond to, or to find valuable data. One of the answers I found when > > working with VB scripting was using the HTML Application, where you > > can create a nice GUI for user commands, or responses, (see the > > article in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up > > in a GUI interface", > > http://www.microsoft.com/technet/scr...s/tutorial1.ms > > px > > > > It would be nice to see this same type of approach with PowerShell. > > Any ideas if this can be done with PowerShell? > > > > Anybody's help would be much appreciated. > > > > Thanks - > > > Take a look at this: > > http://www.codeproject.com/useritems...PowerShell.asp > > Karl > > > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface Thanks Rich! I did look at PowerGUI, I found it great for developing in, but I really wanted something simple that could easily be distributed to an average end user. Almost like VB scripting allows for simple INPUT boxes and then I could invoke the PowerShell script to return that answer. "RichS" wrote: Quote: > have a look at PowerGUI > > www.powergui.org > -- > Richard Siddaway > Please note that all scripts are supplied "as is" and with no warranty > Blog: http://richardsiddaway.spaces.live.com/ > PowerShell User Group: http://www.get-psuguk.org.uk > > > "Karl Mitschke" wrote: > Quote: > > Hello GregHMI, > > Quote: > > > I am fairly new to PowerShell and was looking for a way to take the > > > scripts I have created in PowerShell and provide a nice GUI interface > > > for our end users. For example, a screen which would perhaps have a > > > nice GUI that would ask for an end users response, or a button that > > > would launch a PowerShell script to find all of the disabled users in > > > AD. In our company, we have some power users who don't mind seeing > > > command line responses, but there is also a great number who have come > > > to expect a nice crisp screen, with focussed menu viewing areas to > > > respond to, or to find valuable data. One of the answers I found when > > > working with VB scripting was using the HTML Application, where you > > > can create a nice GUI for user commands, or responses, (see the > > > article in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up > > > in a GUI interface", > > > http://www.microsoft.com/technet/scr...s/tutorial1.ms > > > px > > > > > > It would be nice to see this same type of approach with PowerShell. > > > Any ideas if this can be done with PowerShell? > > > > > > Anybody's help would be much appreciated. > > > > > > Thanks - > > > > > Take a look at this: > > > > http://www.codeproject.com/useritems...PowerShell.asp > > > > Karl > > > > > > |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface GregHMI wrote: Quote: > Thanks Rich! I did look at PowerGUI, I found it great for developing in, but > I really wanted something simple that could easily be distributed to an > average end user. Almost like VB scripting allows for simple INPUT boxes and > then I could invoke the PowerShell script to return that answer. They created an input box. You can also create something simple from PowerShell directly: http://www.microsoft.com/technet/scr.../inputbox.mspx There are some other methods too, but a few don't work so well on non-Vista (the input box appears *behind* the current shell). Marco -- ---------------- PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface Hello Greg, Quote: > Karl, > > Thanks for the information. I am not as familar with C# programming, > but that is very close to what I was looking for. Perhaps I won't be > able to find something like I mentioned in the Technet article: > http://www.microsoft.com/technet/scr...s/tutorial1.ms > px > > I may need to get more creative and try working with the information > you gave me. > > Thanks - > > Greg hta application in the link you peovided. I am thinking of changing my whole approach to the hta model, because of your link. Karl |
My System Specs![]() |
| | #8 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface GregHMI wrote: Quote: > Thanks Rich! I did look at PowerGUI, I found it great for developing in, but > I really wanted something simple that could easily be distributed to an > average end user. Almost like VB scripting allows for simple INPUT boxes and > then I could invoke the PowerShell script to return that answer. 1. You can distribute your scripts, script nodes etc. as a snapin which can be easily imported into someone's copy of PowerGUI 2. You can organize the scripts into folders, sort of making your own application collection. Now I need to go read that HTA article you mentioned. ![]() -- Hal Rottenberg Blog: http://halr9000.com Webmaster, Psi (http://psi-im.org) Co-host, PowerScripting Podcast (http://powerscripting.net) |
My System Specs![]() |
| | #9 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface GregHMI wrote: Quote: > viewing areas to respond to, or to find valuable data. One of the answers I > found when working with VB scripting was using the HTML Application, where > you can create a nice GUI for user commands, or responses, (see the article > in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up in a GUI > interface", > http://www.microsoft.com/technet/scr...tutorial1.mspx > > It would be nice to see this same type of approach with PowerShell. Any > ideas if this can be done with PowerShell? <html> <head> <title>test</title> <HTA:APPLICATION APPLICATIONNAME="test" SCROLL="yes" SINGLEINSTANCE="yes" Quote: > <body> <script language="PowerShell"> Get-Process </script> </body> </html> Does anyone know if such a thing is feasible? What kinda code would need to be written to make this happen, if it is feasible? Big project? Little project? -- Hal Rottenberg Blog: http://halr9000.com Webmaster, Psi (http://psi-im.org) Co-host, PowerScripting Podcast (http://powerscripting.net) |
My System Specs![]() |
| | #10 (permalink) |
| | Re: Wrapping PowerShell Scripts In A GUI Interface You could something similar using Windows Forms and XML parsing, but I would guess that would be a big project. "Hal Rottenberg" <hal@xxxxxx> wrote in message news:empZUNH$HHA.4828@xxxxxx Quote: > GregHMI wrote: Quote: >> viewing areas to respond to, or to find valuable data. One of the answers >> I found when working with VB scripting was using the HTML Application, >> where you can create a nice GUI for user commands, or responses, (see the >> article in Microsoft Technet, "Extreme Makeover: Wrap Your Scripts Up in >> a GUI interface", >> http://www.microsoft.com/technet/scr...tutorial1.mspx >> >> It would be nice to see this same type of approach with PowerShell. Any >> ideas if this can be done with PowerShell? > You know what would be really cool? > > <html> > <head> > <title>test</title> > <HTA:APPLICATION > APPLICATIONNAME="test" > SCROLL="yes" > SINGLEINSTANCE="yes" Quote: > > > <body> > <script language="PowerShell"> > Get-Process > </script> > </body> > </html> > > Does anyone know if such a thing is feasible? What kinda code would need > to be written to make this happen, if it is feasible? Big project? > Little project? > > -- > > Hal Rottenberg > Blog: http://halr9000.com > Webmaster, Psi (http://psi-im.org) > Co-host, PowerScripting Podcast (http://powerscripting.net) |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| run PowerShell scripts from ASP or asp.net | PowerShell | |||
| Powershell scripts not working with Vista powershell | PowerShell | |||
| Can't run powershell scripts | PowerShell | |||
| how to get rid of line wrapping in powershell | PowerShell | |||
| Creating Powershell Scripts | PowerShell | |||