Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web frontend to my Powershell scripts for helpdesk

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:)

like image 970
Sune Avatar asked Mar 21 '12 16:03

Sune


People also ask

How to create a web front-end for a PowerShell script?

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.

How to run PowerShell scripts via a web-based GUI?

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.

Do I need to use HTML when making a PowerShell GUI?

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.

Is there a PowerShell script for the Gallery link?

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)


1 Answers

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.

like image 77
Sunny Chakraborty Avatar answered Sep 20 '22 12:09

Sunny Chakraborty