Showing posts with label WTS and Citrix. Show all posts
Showing posts with label WTS and Citrix. Show all posts

Monday, April 20, 2009

How to clear the Print Spooler

Net stop spooler
cd \windows\system32\spool\printers
del *.* /y
Net start spooler

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