Disable-SCOMAgent

Submitted by sepeck on Tue, 03/20/2018 - 11:56

At work, our server decommissioning process sometimes has me remove the system from SCOM before the server is shutdown, or for some reason they bring it back up for a short while after it's been removed from SCOM. This of course adds itself back to the management servers as soon as the agent reports in.

This is something I wrote to help avoid the problem of ghost systems popping back into my environment.

PowerShell Patch Tuesday

Submitted by sepeck on Tue, 10/11/2016 - 13:06

Automation and patch Tuesday is a pain.  Do you run a script and hard code it for the year?  Do you change the date every month?  Which is what I am doing now with System Center Orchestrator.  Manually updating automation timing is fraught with error, forgetting, selecting the wrong date, etc.  I found an really cool way to determine a given months patch Tuesday based on finding the week the 12th fell in and adapted it.