"You must restart the machine before continuing", while installing the CVAD components.

"You must restart the machine before continuing", while installing the CVAD components.

book

Article ID: CTX292892

calendar_today

Updated On:

Description

CVAD-While Installing/Upgrading the Citrix component (Delivery Controller, Storefront,License ) from previous version , it prompts for reboot, "You must restart the machine before continuing".

Resolution

On the DDC VM, run the below steps to identify the pending reboot registry.
  1. Open an elevated PowerSell session.
  2. Install-Module PendingReboot ( Internet access required on DDC machine )
  3. Set-ExecutionPolicy -ExecutionPolicy "Unrestricted")
  4. Import-Module PendingReboot
  5. Test-PendingReboot -detailed
  6. Delete the registry key mentioned in the Powershell output.
  7. Now the DDC, can be upgraded without restart prompt. 
This function will query the registry on a local and/or remote computer and determine if the system is pending a reboot, from Microsoft/Windows updates, Configuration Manager Client SDK, Pending Computer Rename, Domain Join, Pending File Rename Operations and Component Based Servicing.

image.png

Location for PendingFileRenameOperations regkey is Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager.

Below example will test the pending reboot status for remote computer dc01, providing detailed information
PS C:\>Test-PendingReboot -ComputerName DC01 -Detailed

Problem Cause

Reboot was pending from the VM side.