pruggitorg / pending-reboot-status-Windows-machine

Determine programmatically pending reboot status for a Windows machine in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Determine programmatically pending reboot status for a Windows machine in C#

By using ISystemInformation interface (wuapi.dll), you can check, if the Windows Update Agent (WUA) requires a reboot of the system.

ISystemInformation::get_RebootRequired Gets a Boolean value that indicates whether a system restart is required to complete the installation or uninstallation of one or more updates.

Further readings

https://www.prugg.at/2019/06/19/determine-programmatically-pending-reboot-status-for-a-windows-machine-in-c-and-powershell/

About

Determine programmatically pending reboot status for a Windows machine in C#

License:MIT License


Languages

Language:C# 100.0%