We are experiencing issues with GPO-triggered logon scripts in a customer's Citrix CVAD environment. The affected GPOs are applied correctly. We can see them in both gpresult and the Event Viewer, but the configured logon scripts are not executed. We have not been able to narrow the issue down to a specific GPO, as it appears to occur randomly within the GPOs containing scripts.
The GPOs with the logon scripts are linked at different OUs levels, including one at the domain root level with "enforced" enabled. (this is the most important one and seems to never work)
It seems that the issue only occurs on Windows Server 2022 VDAs (2507 CU1) that publish a full desktop. Published application silos are not affected.
The same scripts work without issue when deployed through Citrix WEM.
We are currently investigating ways to gather more information, including adding logging to the scripts and creating dummy files in %TEMP% using Group Policy Preferences within the same GPO. So far, however, we have not identified any clear pattern.
We have also tested different processing modes, including disabling "Run logon scripts synchronously" and disabling asynchronous Group Policy processing, but neither made a difference.
What's particularly strange is that the previous VDAs running Windows Server 2016 behave as expected and do not show this behaviour.
Has anyone encountered similar behavior on Windows Server 2022 VDAs specifically, or has any suggestions on where to continue troubleshooting?