Today, I put together another management pack for SCOM, and this time this management pack monitors if servers need a reboot.
The management checks for a pending reboot requirement in four places… These three registry locations are checked for values that indicate a reboot is required:
HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing
And, Microsoft.Update.SystemInfo is queried for a requirement to reboot.
After testing though, I did notice that some applications can create registry entries that would normally indicate that a system reboot is required, however a reboot isn’t actually required, it’s just the way the app works. Therefore, I have also added the ability to configure whether the reg keys are checked, or if Microsoft.Update.SystemInfo is queried, or both. This can be configured by overriding the Script Arguments property on the monitor to one of these values:
“11” – All reg keys and SystemInfo queried (Default)
“01” – No reg keys checked, only SystemInfo queried
“10” – All reg keys checked, SystemInfo not queried
Other useful information:
- Monitor is disabled by default – An override will be required to Enable it!
- Monitor target: Windows Server Operating System
- Frequency: Once per day (Overrideable)
- Sync Time: 09:00 (Overrideable)
- Timeout: 60 seconds (Overrideable)
- Tested on Windows Server 2003 through to 2012 R2
An alert will be generated for each server that requires rebooting…
Download the management pack at the TechNet Gallery.
As ever, please let me know if you have any issues or feedback!