Wes Weeks

  Home  |   Contact  |   Syndication    |   Login
  21 Posts | 1 Stories | 115 Comments | 3 Trackbacks

News

Archives

Post Categories

Wednesday, June 30, 2010 #

Worked on a CRM which had a need to limit the users that could be chosen to a specific OU.  This should be simple enough with the CRM deployment config tool following these instructions:

http://support.microsoft.com/kb/959549

However it did NOT work.  The error I got was:

Command failed with the following message: The parameter does not start with '-';

 

The command I used that gave me this error was

Microsoft.Crm.DeploymentConfigTool.exe userorgsettings update -organization:<ORG_NAME> -propertyname:UserRootPath -propertyvalue:LDAP://mydomain.local/OU=CRM Users;DC=mydomain;DC=local

 

Exactly as the instructions indicated.  Searched the net and could not find any help on this.  After several hours of frustration, I figured out the cause.

 

Turns out, you have to put the domain OU property in quotes.  The command that worked was:

Microsoft.Crm.DeploymentConfigTool.exe userorgsettings update -organization:<ORG_NAME> -propertyname:UserRootPath -propertyvalue:LDAP://mydomain.local/OU=CRM Users;DC=mydomain;DC=local

 

It appears that the issue is that the command is reading the colon after the LDAP as indicating another parameter.

 

Happy Coding!