citrix / Powershell-Scripts

Repository of useful powershell scripts related to Citrix
45 stars 25 forks source link

HAADVMaddRegistry.ps1 #4

Closed leicaocitrix closed 1 year ago

leicaocitrix commented 1 year ago

For Citrix MCS provisioned Azure AD or Hybrid Azure AD joined machine catalogs that uses Windows 11 22H2 as master VMs’ OS, the VDA machines might stuck at “Initializing” status after startup.

For Hybrid Azure AD joined machine catalogs, create a scheduled task in the master VM that executes the following commands at system startup using SYSTEM account. reg ADD HKLM\Software\AzureAD\VirtualDesktop /v Provider /t REG_SZ /d Citrix /f reg ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\WorkplaceJoin /v autoWorkplaceJoin /t REG_DWORD /d 1 /f dsregcmd /join