Thursday, April 16, 2009

How to re-create the Citrix local cache if it has become corrupted

Batch File to Stop the Citrix IMA services, re-create the local cache on a Citrix XenApp server and then restart to the Citrix Services

@echo off
echo.
.echo...Stopping the Citrix IMA Services services...
net stop "Citrix SMA Service" > NUL
net stop Citrixwmiservice > NUL
net stop imaservice > NUL
echo. Running dsmaint and re-creating the Local Cache
dsmaint recreatelhc

echo... Starting the Citrix IMA Services services...
net start imaservice > NUL
net start "Citrix SMA Service" > NUL
net start citrixwmiservice > NUL

EXIT

No comments:

Post a Comment