PVS Reseal with Appsense

Leave a comment
Share

Here is a script created to allow users to reseal a XenApp 6.5 server with Appsense Agent installed. It is meant to generalise the AppSense agent for imaging…

@ECHO OFF
echo Removing AppSense CCA registry information and stopping CCA Service
net stop "AppSense Client Communications Agent"
reg add "HKEY_LOCAL_MACHINE\Software\AppSense Technologies\Communications Agent" /v "group id" /t reg_sz /d "" /f
reg add "HKEY_LOCAL_MACHINE\Software\AppSense Technologies\Communications Agent" /v "machine id" /t reg_sz /d "" /f

echo Starting the Citrix Reseal
"C:\Program Files (x86)\Citrix\XenApp\ServerConfig\XenAppConfigConsole.exe" /ExecutionMode:ImagePrep /RemoveCurrentServer:True /PrepMsmq:True
ECHO *************************************************
ECHO *************************************************
ECHO **************** RESEAL COMPLETE ****************
ECHO ***** Remember to promote the vDisk to Test *****
ECHO ********* The Server will now shutdown **********
ECHO *************************************************
ECHO *************************************************
pause
shutdown -s -f -t 00

Leave a Reply

Your email address will not be published. Required fields are marked *