From the course: PowerShell: Functions for Advanced Automation
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Controller scripts with HTML reports
From the course: PowerShell: Functions for Advanced Automation
Controller scripts with HTML reports
- [Instructor] Many of the PowerShell functions and scripts that you will write will be designed to gather information, accessing WMI objects, SIM instances, .NET classes and more. A constant challenge when gathering information is figuring out a way to display it. There are those that are not as comfortable with the way PowerShell displays the information. Sometimes you need to prepare your reports for them. I wrote a function for a course on automating administration. This function will pull a list of users whose passwords are expiring soon. Now let's say your management team asks you for a list of people that need to reset their password and I assume you appreciate help in encouraging users to take care of their own accounts. So let's find a way to pull this information and display it for our leadership team. In my controller script, I can import the module and then go ahead and call that function and it will run. And if I add two cmdlets, I can take that information and I can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.