The script completes with exit code 0 when updates with reboot type 3 (Reboot required but not forced by the package) are installed and no user is logged in. The following lines are logged:
[Pre-Installation] :: *** Applicable updates *** 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: Type 0 (No reboot required): 2 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: Type 1 (Reboot forced by the package): 2 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: Type 2 (Reserved): 0 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: Type 3 (Reboot required but not forced by the package): 16 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: Type 4 (Shutdown forced by the package): 0 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: Type 5 (Reboot delayed): 1 2019-08-28 2:39:38 PM 0 (0x0000)
[Pre-Installation] :: ************************** 2019-08-28 2:39:38 PM 0 (0x0000)
[Installation] :: [ThinInstaller.exe] successfully resolved to fully qualified path [C:\WINDOWS\ccmcache\2n\Files\ThinInstaller.exe]. Execute-Process 2019-08-28 2:39:38 PM 7872 (0x1EC0)
[Installation] :: Working Directory is [C:\WINDOWS\ccmcache\2n\Files]. Execute-Process 2019-08-28 2:39:38 PM 7872 (0x1EC0)
[Installation] :: Executing [C:\WINDOWS\ccmcache\2n\Files\ThinInstaller.exe /CM -search A -action INSTALL -repository \\nootka\LenovoUpdates -includerebootpackages 3 -noicon -noreboot -exporttowmi]... Execute-Process 2019-08-28 2:39:38 PM 7872 (0x1EC0)
[Installation] :: Standard error output from the process: User Parameters: /CM -search A -action INSTALL -repository \\nootka\LenovoUpdates -includerebootpackages 3 -noicon -noreboot -exporttowmi
Launching the application in mode: CM
Send the following parameters to the application: System.Collections.ArrayList
Launching COMMAND LINE with parameters -search A -action INSTALL -repository \\nootka\LenovoUpdates -includerebootpackages 3 -noicon -noreboot -exporttowmi
Execute-Process 2019-08-28 3:18:52 PM 7872 (0x1EC0)
[Installation] :: Execution completed successfully with exit code [0]. Execute-Process 2019-08-28 3:18:52 PM 7872 (0x1EC0)
[Installation] :: Install will force reboot or shutdown, so prompting user 2019-08-28 3:18:52 PM 0 (0x0000)
[Installation] :: Bypassing Installation Prompt [Mode: NonInteractive]... An important software update is available. This update will restart your computer, so save and close your documents before proceeding. Do not unplug or shut down your computer until the Windows sign in screen is displayed. Show-InstallationPrompt 2019-08-28 3:18:52 PM 7872 (0x1EC0)
[Post-Installation] :: Bypass Installation Restart Prompt [Mode: NonInteractive]. Show-InstallationRestartPrompt 2019-08-28 3:18:52 PM 7872 (0x1EC0)
[Post-Installation] :: Lenovo_ThinInstaller_1.3.0007_EN_01 Installation completed with exit code [0]. Exit-Script 2019-08-28 3:18:52 PM 7872 (0x1EC0)
[Post-Installation] :: ------------------------------------------------------------------------------- Exit-Script 2019-08-28 3:18:52 PM 7872 (0x1EC0)