/build/static/layout/Breadcrumb_cap_w.png

Create a Powershell script to automatically email all the groups for PNR Windows OS Security Patching

Hello all!

I'm very new to powershell scripting. I was working on a issue to try and speed up our patching process.  I'm trying to create a script that can be executed at the end of the Windows OS Security patching for the Patch & NoReboot groups to send the reboot needed emails.  The script should take the list of patched servers from the current run and then email the owners that the patching is complete and they need to reboot. We usually have to send out many many emails one at a time, that can sometimes take a couple hours, just to ask people to reboot their servers. Any help on this topic would be greatly appreciated. 

Thanks!


0 Comments   [ + ] Show comments

Answers (1)

Posted by: rileyz 8 years ago
Red Belt
0
Google that shizzle my friend!

A few things to keep in mind. 
  • The PowerShell version you are using, some cmdlets wont work in older versions of PS.
  • How you send your email, via exchange etc.
  • How will you get the script to run at the end of patching, is there a way to tack it on at the end?
  • Whos owns the server, how will the dynamic email work? Maybe stored the server owner in the registry and the script will pull it. Or have a CSV and get the script to match the server name in the csv to the email address.
Tips for a noob: start small with the PowerShell ISE and build up the script.



Another solution, talk to a secretary (male or female of course) and get the them to help you make a mail merge!


 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ