Home

HTML and background Powershell running

%3CLINGO-SUB%20id%3D%22lingo-sub-163595%22%20slang%3D%22en-US%22%3EHTML%20and%20background%20Powershell%20running%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-163595%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20team%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20like%20some%20guidance%20over%20the%20below%20requirement.%20I%20want%20to%20have%20a%20HTML%20page%2C%20and%20inside%20the%20HTML%20page%20there%20will%20be%20some%20powershell%20commands%20running%20at%20a%20given%20interval.%20The%20powershell%20is%20to%20run%20and%20display%20the%20outputs%20on%20the%20HTML%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20this%20scenario%20even%20possible%3F%20I'm%20quite%20new%20so%20can%20anyone%20please%20point%20me%20in%20some%20direction.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CP%3EJude.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-163595%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHTML%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-182944%22%20slang%3D%22en-US%22%3ERe%3A%20HTML%20and%20background%20Powershell%20running%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182944%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdam%20Driscoll%20have%20created%20the%20UniversalDashboard%20PowerShell%20module.%20It%20is%20available%20in%20the%20PowershellGallery.%20Have%20a%20look%2C%20it%20might%20be%20the%20thing%20you%20are%20looking%20for%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.powershellgallery.com%2Fpackages%2FUniversalDashboard%2F1.5.3%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.powershellgallery.com%2Fpackages%2FUniversalDashboard%2F1.5.3%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETore%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-177733%22%20slang%3D%22en-US%22%3ERe%3A%20HTML%20and%20background%20Powershell%20running%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-177733%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20setup%20I%20can%20think%20of%20is%20building%20a%20simple%20ASP.NET%20website%20that%20runs%20your%20required%20PowerShell%20commands%20server-side.%20You%20can%20then%20easily%20route%20back%20the%20output%20of%20the%20PowerShell%20commands%20towards%20the%20ASP.NET%20server-side%20http%20request%20pipeline.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-164080%22%20slang%3D%22en-US%22%3ERe%3A%20HTML%20and%20background%20Powershell%20running%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-164080%22%20slang%3D%22en-US%22%3E%3CP%3ENo%20experience%20with%20it%20my%20self%2C%20but%20maybe%20this%20can%20help%20you%20on%20the%20way%3F%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fhodgkins.io%2Fautomating-with-jenkins-and-powershell-on-windows-part-1%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhodgkins.io%2Fautomating-with-jenkins-and-powershell-on-windows-part-1%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1133674%22%20slang%3D%22en-US%22%3ERe%3A%20HTML%20and%20background%20Powershell%20running%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1133674%22%20slang%3D%22en-US%22%3EThis%20may%20be%20of%20use%20-%20run%20powershell%20script%20and%20output%20to%20webpage%20in%20real-time%20-%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fashstrahle%2FRealtimePowerShellHTMLWindow.git%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fashstrahle%2FRealtimePowerShellHTMLWindow.git%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1139617%22%20slang%3D%22en-US%22%3ERe%3A%20HTML%20and%20background%20Powershell%20running%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1139617%22%20slang%3D%22en-US%22%3EI%20have%20to%20agree%20with%20Tore%20here%3A%20UniversalDashboard%2C%20although%20a%20bit%20of%20a%20learning%20curve%20will%20do%20exactly%20what%20you%20need%20and%20much%20much%20more.%20Examples%3A%20%3CA%20href%3D%22https%3A%2F%2Funiversaldashboard.io%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Funiversaldashboard.io%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
Jude Perera
Occasional Contributor

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
Highlighted

No experience with it my self, but maybe this can help you on the way?
https://hodgkins.io/automating-with-jenkins-and-powershell-on-windows-part-1

Highlighted

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.

 

 

Highlighted

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

Highlighted
This may be of use - run powershell script and output to webpage in real-time - https://github.com/ashstrahle/RealtimePowerShellHTMLWindow.git
Highlighted
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/