Hello,
I'm having trouble installing MSI files or other applications when the "Update-ADTDesktop" function is called on a "KIOSK" workstation with a "Service Account" user session open. Since the service account has no permissions, the installation fails:
[Pre-Install] :: Failed to refresh the Desktop and the Windows Explorer environment process block.
Error Record:
Message: Exception occurred when calling "Open" with "0" argument(s): "This program is blocked by a Group Policy. For more information, contact your system administrator."
Can this issue be addressed in future releases, or how can "Update-ADTDesktop" be disabled without adding tests throughout the script and thus requiring multiple commands to be configured with "NoDesktopRefresh"?
I think we should add a check in the module and disable the execution of Update-ADTDesktop for "KIOSK" workstations or user accounts with very restricted privileges.
Note that KIOSK workstations are managed by Intune.