Farm Cleaner
© Gourami Software 2009,
www.gourami.eu

Step 1 – Selecting servers
When you
start Farm Cleaner it automatically connects to the data store and
finds all Citrix servers in your XenApp environment. The servers are
presented in a list view and you are now able to select the servers you
want to clean. The white box in front of the server name indicated it
will be processed later on.
Step 2 – Calculate Size
Once the
servers are selected as described in step 1, you now can find out how
much space the profile folder for each server is. Because profiles are
usually built up with very many small files, this task can take a
considerable time!
Step 3 – Options
In the options menu you can select to clean:
-Profile folder
-Spool folder
-Temp folder
In most
cases not all profile folder have to be deleted. For example, the
‘all users’ folder needs to stay in the ‘documents
and settings’ folder on the server. Here is a complete list of
folders Farm Cleaner automatically skips:
-administrator
-all users
-ctx_smauser
-dafault user
-localservice
-networkservice
-schedtaskuser
-ctx_cpscuser
Step 4 – delete the folders
Press the
‘Delete folders’ button to start cleaning the server(s).
This job can also take a long time depending on how many servers and
profiles have to be processed. Once the job has finished, you get a
nice overview of the job outcome.

Limitations, known issue’s
-Deletion of file is use usually fail. There is no fix for this.
-The account that runs Farm Cleaner must have full rights to the files/folders being deleted.
Command line options:
Farm Cleaner comes with a nice GUI, but it’s also possible to
clean your farm using command line options, here is a complete list of
the command line options:

System requirements
administrator account
Citrix Presentation Server/XenApp 4.0 or newer
.NET framework 2.0