Thursday, February 10, 2011

Set Citrix services recovery options to "Restart the Service"

We can set Citrix importent Services Recovery Option to "Restart the services" by a batch script.

Please save the below codes to a notepad and name it anything.bat

"@echo off
echo Citrix Active Sync
reg add hklm\system\currentcontrolset\services\CtxActiveSync /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo Client-network
reg add hklm\system\currentcontrolset\services\CdmService /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo client-dg
reg add hklm\system\currentcontrolset\services\CdfSvc /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000200043000100000060EA00000100000060EA00000100000060EA0000

echo Client Encryption Service
reg add "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\Citrix Encryption Service" /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000200043000100000060EA00000100000060EA00000100000060EA0000

echo citrix health mon
reg add hklm\system\currentcontrolset\services\CitrixHealthMon /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo citrix imaservice`
reg add hklm\system\currentcontrolset\services\imaservice /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000200043000100000060EA00000100000060EA00000100000060EA0000

echo Citrix MFCOM
reg add hklm\system\currentcontrolset\services\MFCom /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000200000060EA00000100000060EA0000

echo print
reg add hklm\system\currentcontrolset\services\cpsvc /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000630074000100000060EA00000100000060EA00000100000060EA0000

echo IMAAdvanceSrv
reg add hklm\system\currentcontrolset\services\IMAAdvanceSrv /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000200000060EA00000100000060EA0000

echo SMA
reg add "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\Citrix SMA Service" /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo xml
reg add hklm\system\currentcontrolset\services\ctxhttp /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

"

No comments:

Post a Comment