From the course: PowerShell 5 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Storing data as a webpage

Storing data as a webpage - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Storing data as a webpage

- One of my favorite file formats to use with the Pipeline for reports is making web pages or html. In fact, get-help * html* and we have a Cmdlet that'll assist with this. I really encourage you to take a look at this help file and the examples in detail. You're gonna be impressed with what you can do with this. Let me give you some examples of what I like to do. First of all, let's take a typical business problem. I want to get some information out of the Event log and I wanna get it from the LogName system and I'd like the newest 5 of -EntryType error. Now if I run this right now I have the information. I can put this in a CSV or an XML but what I really want is I want other admins every morning at eight o'clock in the morning to open up the web browser and go check this web page for this information and see if there's something that we need to be concerned about. This means checking the Event logs for all of the computers. In fact, I could do this. Let's reduce this number just to…

Contents