Thursday, December 14, 2006

CTX: How To Use DSCHECK

How To Use DSCHECK

Usage: dscheck [Options]
• [ /Clean /Full]
• [ Servers Apps Printers Groups MSLicense Folders Licenses InstallationJobs]
• [/Silent]

To Check the Data Store

From the command prompt, type dscheck.

To Repair the Data Store

From the command line change to the temp directory where the dscheck.exe utility resides. Run the following switch commands:

• dscheck /full Servers [Options]
o – Verify/Clean or Delete the server. May be left blank. Defaults to all servers.
o /Clean – Modify the data store to correct the errors.
o /DeleteAll – Delete the server entries from the data store.
o /DeleteMF – Delete the MetaFrame Server entry from the data store.
o /DeleteComSrv – Delete the Common Server entry from the data store. If specified without a server name, will attempt to remove all the duplicate Common Server entries.
Note: In general, use /Delete*** with caution.

• dscheck /full Apps [Options]
o – Verify/Clean or Delete the application. May be left blank. Defaults to all applications.
o /Clean – Modify the data store to correct the errors.
o /ServerCheck – Verify that all applications are hosted by valid servers.
o /DeleteMF – Delete the MetaFrame Application entry from the data store.
o /DeleteComApp – Delete the Common Application entry from the data store.

• dscheck /full Printers [Options]
o /purge_replications – Removes all printer replications from the data store.
o /purge_client_printers – Removes all Client Auto-Create printers pending deletion from the data store.
o /purge_drivers – Removes all drivers which are not associated with any servers or session printer policies from the data store.

• dscheck /full Groups [Options]
o /Clean – Removes the group object. GroupName is the relative DN from the Context.
o /Clean – Removes the group from the parent group. Use the output of DSCHECK.exe GROUPS /verify" for both ParentGroupName and GroupName.

• dscheck /full MSLicense [Options]
o /purge_licenses – Removes all Microsoft Licenses from the data store.
o /list – Lists all Microsoft Licenses in the data store.
• dscheck /full Folders /clean – Collapse orphaned folders in the data store.
• dscheck /full Licenses /clean – Removes all corrupt licenses from the data store.

• dscheck /full
CAUTION: If this is run with the /clean switch the database will be modified if inconsistencies are found. It is recommended that the data store database is backed up prior to running dscheck with the /clean switch.

http://support.citrix.com/article/CTX107800

No comments: