Friday, 24 December 2010

Server 2008 Remote Assistance does not work with Hybrid or Mandatory Profiles

Remote Assistance fails to allow shadowing to users who have a mandatory or hybrid profile.

This is a double pain as Shadowing in Citrix Xenapp6 does not work well in multi-monitor environments.

Workaround
The workaround is to set the following registry key to "0" on the users logon.
This key is a HKLM but only present when a user logs on as its a reference to their SID.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\USERSID\State = 0

I have used a logon script to set this value for the user at logon.

FOR /F "tokens=1,2 delims==" %%s IN ('wmic path win32_useraccount where ^(name^='%username%' and domain^='%userdomain%'^) get sid /value ^| find /i "SID"') DO SET SID=%%t

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\%SID%" /v "State" /t REG_DWORD /d "0" /f

No comments:

Post a Comment