Forum Discussion
Brendan Leddy
May 08, 2017Copper Contributor
Creating a website to display Powershell Script Output
Hi all,
I have a quick query, that I'm hoping someone might be able to help me with.
I run a number of powershell scripts weekly (Inactive accounts, DA memebers, etc) and the output of each script is emailed to my IT colleagues in either EXCEL or html format.
I want to try and create a website, where the output of all these scripts are displayed on one or more pages. Where should I start with this? and how can I integrate powershell into HTML? Should i be looking at ASP.NET?
Thanks
Brendan
- A quick and easy solution (depending on your security and other requirements) might be to run up an IIS web service and turn on directory browsing, then use convertto-html | out-file to make up some html files for each report with a date stamp. You can then browse to the webservice and see a listing of all the outputs.
If required you can have a separate script the cleans it up each week or month.
- Peter McDonaldIron ContributorA quick and easy solution (depending on your security and other requirements) might be to run up an IIS web service and turn on directory browsing, then use convertto-html | out-file to make up some html files for each report with a date stamp. You can then browse to the webservice and see a listing of all the outputs.
If required you can have a separate script the cleans it up each week or month.- Brendan LeddyCopper Contributor
Thanks Peter, I'll give that a go and see how I get on!
Brendan
- ashstrahleCopper ContributorTo anyone who may still be interested in this, here’s a working demo of real-time Powershell output to a webpage. https://github.com/ashstrahle/RealtimePowerShellHTMLWindow.git