Edit Hkey_Current_User keys

Create te following steps for editing the Hkey_current_user. For example, this could be used in a Task Sequence in Config Manager.

User is not logged on to the client:

Load Hive
reg.exe load HKU\temphive c:\users\\ntuser.dat
Edit Registry
reg.exe add “HKU\temphive\Control Panel\Desktop” /v ScreenSaveActive /t REG_SZ /d 0 /f
Unload Hive
reg.exe unload HKU\temphive

User is logged on to the client

Use PSGETSID.EXE from sysinternals suite.


echo off

:: ——–
:: Turn off Echo

:: Variabable “uSID” to store UserSID
set uSID=

::Get SID and store in uSID
for /F “usebackq delims== skip=1” %%i in (`psgetsid.exe -accepteula User`) do set uSID=%%i

:: SID to screen
echo uSID=%uSID%

:: Set registry path to _key
set _KEY= HKU\%uSID%\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current
echo _KEY=%_KEY%

:: Delete default value
Reg delete “%_KEY%” /ve /f


:: ———


PVS RAM with Disk Overflow

The default target device software on the ISO doesnt work with PVS RAM with Disk Overflow… 

Download http://support.citrix.com/article/CTX140338  PVS710TargetDeviceWX64002.zip and use this version.

The best is to start all over again with a  golden image deployment(SCCM or MDT TS Deployment or RES Wisdom for example). After the deployment is finished install the target device software from the hotfix and capture a new vDisk.

Updating Target device software is a real pain in the !@#. Updating info: http://support.citrix.com/article/CTX135746

Also check


  • A PVS 7.1 hotfix is required for this write-cache type to work properly: 32-bit and 64-bit.

ScreenSaver XenDesktop 7.1

When you use XenDesktop 7 or 7.1 the screensaver doesn’t work when you have a VDI session. This is a known issue. To fix this set the following Key

HKLM\Software\Citrix\Graphics SetDisplayRequiredMode REG_DWORD = 0

reg add “HKLM\Software\Citrix\Graphics” /v SetDisplayRequiredMode /t REG_DWORD /d “0” /f

  • Screen savers and the power-save option are disabled in XenDesktop sessions. Edit the registry and create the following DWORD value:
    HKLM\Software\Citrix\Graphics\SetDisplayRequiredMode = 0

    This change does not prevent the remote machine screen saver or power save mode from coming on. If the power save mode comes on, the remote session is not updated until the user provides input (mouse/keyboard), but the screen will not be blanked. [#380550]