LCSCmd is very good about giving you help - all you have to do is ask. Simply place a slash mark and a question mark (/?) at the end of the command you need help with.

This command will list all of the available contexts.

Copy Code
LCSCmd /?

This command will list all the actions available for the given context.

Copy Code
LCSCmd /<context> /?

For example, use the following command to retrieve all the actions available for the Domain context.

Copy Code
LCSCmd /domain /?

This command will list all the parameters available for the given action for the specified context.

Copy Code
 LCSCmd /<context> /action:<action> /?

For example, you would use the following command to determine the required and optional parameters for activating an Archiving Server.

Copy Code
LCSCmd /archiving /action:activate /?

How do you know whether a parameter is required or optional? Simply look at the syntax returned by the Help. Here's some of what you would see from the previous command.

Copy Code
/Archiving:<Archiving server FQDN> /Action:<action
name>
[/RefDomain:<Domain FQDN> ][/PDCRequired:[TRUE:FALSE] ]
[/GlobalSettingsDC:<DC FQDN> ]/DC:<DC FQDN> ]
[/GC:<GC FQDN> ][/Global:<Configuration | System> ]
[/L:<log file path> ][/XML:[TRUE|FALSE] ][/?:[TRUE|FALSE] ]

Everything within square brackets [] is optional; everything that's not in square brackets is required. Mutually exclusive items are separated by a vertical bar ( | ). One of the options separated by the vertical bar can be specified but not multiple options. When a parameter can contain one or more values, these values are separated by a comma.