Friday, March 22, 2013

Error: "The parameter is incorrect - starttime" error when you run Search-CsClsLogging in Lync Server 2013


When you run the "Search-CsClsLogging cmdlet" from Microsoft Lync Server 2013 Management Shell on a computer, you receive the following error message:
Starting search against 1 computers
Failed on 1 agents
Agent - lync.domain.com, Reason - Error code - 87, Message - The parameter is incorrect -    starttime.
Note: This issue occurs because the date and time format setting on the computer is not set to English (United States).

The work around for this issue is to set the date and time format setting to English (United States):
  1. Open Control Panel, and then open Region and Language.
  2. In the Formats tab, change the format to English (United States).
  3. Restart Lync Server Management Shell, and then run the get-date –format g cmdlet to verify that the change has taken effect.