I'd like to have a web frontend to my powershell scripts for helpdesk.
These scripts would typically be user-creation scripts and scripts to restart a specific service on a specific server.
Where should I start? What would I need?
There is no problem for me to set up a IIS for this purpose if needed. We also have Sharepoint on a dedicated server.
Hoping for some startup-tips:)
You can automatically generate a web front-end for PowerShell scripts using System Frontier. No HTML or server-side programming needed. You just create custom fields and assign them to command-line parameters.
It's intended to allow non-technical users the ability to run powershell scripts via a web-based GUI. You define your scripts and their input parameters in a json config file and it builds the GUI for your users on the fly. Show activity on this post. You use HTML GUIs ( HTA) for VBScript and/or JavaScript. For PowerShell you use Windows Forms.
There is no need for using HTML when you're making a GUI for PowerShell scripts because the GUI can be embedded in the script. That way it can be run on any administrative client rather than having to set up web server running a web GUI that in turn runs a PowerShell script.
The powershell gallery link actually has a functional Powershell web server script in just under 175 lines (plus comments) that was originally written within Microsoft in 2014. (The Microsoft code, in case it moves URL's, is called HTTPListener.psm1 so it can be found in a web engine search)
You can consider Powershell Web Access feature on Powershell V3.0 http://technet.microsoft.com/en-us/library/hh831611.aspx
This is a robust solution, factoring in IIS, security and shell access.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With