By default, the results of LCSCmd commands are logged to the %temp% folder to a file named context_ action[ date][ time].html. For example, consider the following command.

Copy Code
LCSCmd /forest /action:CheckAllPoolsState

If this command were run on December 15, 2008 at 4:32:30 PM, the log file would be named Forest_CheckAllPoolsState[2008_12_15][16_32_30].html.

Note:
The context will always be initial caps, but the casing of the action in the file name will match the casing you use in the command. For example, if you use all lowercase in the command ( /action:checkallpoolsstate), the action will be all lowercase in the file name: Forest_checkallpoolsstate[2008_12_15}{16_32_30}.html.

For actions that include the /Roleparameter, the role is also included in the file name. For example, if you run the Activateaction on the Server context with a role of EE (Enterprise Edition), your log file would be named something like this:

Server_EE_Activate[2008_12_15][16_32_30].html

Similarly, if you run the ActivateAppaction on the AppServer context, by default the log file name will include the application ID. For example, if you specify the Microsoft.Rtc.Application.Caa ID, your log file name will be something like this:

AppServer_Microsoft.Rtc.Application.Caa_ActivateApp[2008_12_15][16_32_30].html

The log file name will be displayed as part of the command output.

Copy Code
...
Executing "Check Active Directory Object
CN={9C647842-4218-4DB6-A317-41A477FDDCC4}"
Executing "Validate Pool FQDN DNS registration"
Check the log file
"C:\DOCUME~1\ADMIN~1\LOCALS~1\Temp\Forest_CheckAllPoolsSate[2008__12_15][16_32_30].html"
for details.
...

If you want to specify your own path and file name, use the /Lparameter in your command.

Copy Code
LCSCmd /forest /action:CheckAllPoolsState
/l:C:\MyLogs\PoolStateLog1.html
Note:
If your path contains spaces, you must put double quotes around the full path: /l:C:\My logs\PoolStateLog1.html.
Note:
The folder you specify will be populated with the HTML file as well as its supporting graphics files.

You can disable logging altogether by following the /Lparameter with a hyphen.

Copy Code
LCSCmd /forest /action:CheckAllPoolsState /l:-

To save the log as an XML file rather than HTML, include the /XMLparameter.

Copy Code
LCSCmd /forest /action:CheckAllPoolsState /XML