Hello,
Is there a way, in the DataMiner Microsoft connector, to get the ‘reboot required’ status i.e. after installing patches. I believe this info is available via the WMI.
Thank you!
Best regards,
Pawel.
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023
Hi Pawel,
I believe that this “reboot required” is logged as an event in the Event Viewer, and the DataMiner driver has a capability to read the events from the Event Viewer, and you can put in a key word to pick up on messages that you are interested in (e.g. disk crash, reboot, etc.). There are some pre-defined key words that you can select from, but you can enter your own. So this is probably a matter of checking the exact keyword needed to identify this, and setting it up.
Ben
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023
Hi Pawel, you can find more information about the events related to “Windows Update installations” in the following link from Microsoft:
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/cc735621(v=ws.10)
The events that can be used to track required reboots are:
– Event 21: Reboot required: To complete the installation of the following updates, the computer must be restarted. Until this computer has been restarted, Windows cannot search for or download new updates: %1
– Event 22: Restart required: To complete the installation of the following updates, the computer will be restarted within %1 minutes: %2