Forum Discussion

Jude Perera's avatar
Jude Perera
Copper Contributor
Feb 23, 2018

HTML and background Powershell running

Hi team,

 

I would like some guidance over the below requirement. I want to have a HTML page, and inside the HTML page there will be some powershell commands running at a given interval. The powershell is to run and display the outputs on the HTML page.

 

Is this scenario even possible? I'm quite new so can anyone please point me in some direction.

 

Thank you.

Jude.

5 Replies

  • ashstrahle's avatar
    ashstrahle
    Copper Contributor
    This may be of use - run powershell script and output to webpage in real-time - https://github.com/ashstrahle/RealtimePowerShellHTMLWindow.git
  • Tore Grøneng's avatar
    Tore Grøneng
    Copper Contributor

    Hi,

     

    Adam Driscoll have created the UniversalDashboard PowerShell module. It is available in the PowershellGallery. Have a look, it might be the thing you are looking for:

     

    https://www.powershellgallery.com/packages/UniversalDashboard/1.5.3

     

    Cheers

     

    Tore

    • ServerCare's avatar
      ServerCare
      Copper Contributor
      I have to agree with Tore here: UniversalDashboard, although a bit of a learning curve will do exactly what you need and much much more. Examples: https://universaldashboard.io/
  • Carl in t Veld's avatar
    Carl in t Veld
    Copper Contributor

    One setup I can think of is building a simple ASP.NET website that runs your required PowerShell commands server-side. You can then easily route back the output of the PowerShell commands towards the ASP.NET server-side http request pipeline.

     

     

Resources