Is there any API function for shutting down Windows while installing any pending updates? Is there any API function for shutting down Windows while installing any pending updates? windows windows

Is there any API function for shutting down Windows while installing any pending updates?


The best you can do is call InitiateShutdown and include the SHUTDOWN_INSTALL_UPDATES flag on Vista and higher. Windows XP does not support programmatically shutting down with updates.