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 (
|
For actions that include the
Server_EE_Activate[2008_12_15][16_32_30].html
Similarly, if you run the
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
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
Copy Code | |
---|---|
LCSCmd /forest /action:CheckAllPoolsState /l:- |
To save the log as an XML file rather than HTML, include the
Copy Code | |
---|---|
LCSCmd /forest /action:CheckAllPoolsState /XML |