D
D
dmitriy2192016-06-10 19:02:23
PowerShell
dmitriy219, 2016-06-10 19:02:23

Is it possible to control PowerShell with a web shell?

The client has a server on Windows, managed via PowerShell. There was a request from a client - to make a "beautiful html5 wrapper". Those. As far as I understand, PowerShell Web Access will not suit them - I want push-button control with a fixed set of commands.
Is it feasible? If yes, then how to make the back-end of the web pestilence friendly with PowerShell'om?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Fat Lorrie, 2016-06-10
@Free_ze

var scriptPath = @"C:\my_path\script.ps1";
System.Diagnostics.Process.Start("powershell -File " + scriptPath);

E
Eugene, 2016-06-10
@yellowmew

theboywonder.co.uk/2012/07/29/executing-powershell...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question