Tuesday, March 3, 2009

Change password in Active Directory

During one of the deployment of Microsoft CRM the users in Active directory got corrupted and we were supposed to RESET the password of all the 2500 users in the Active Directory. Following command will be useful for you to update the password:

e.g. i want to RESET the password of a user with name 'Uday Kumar' who is present in the domain called "MyOrganization.PrivateDomain.Corporate.Company.Com". Please note that one CN = Users is always constant and the DC = '' will always contain the domain name.

dsmod user "CN=Uday Kumar,CN=Users,DC=MyOrganization,DC=PrivateDomain,DC=Corporate,DC=Company,DC=COM" -pwd test@123

(Note - The domain name can be found by "Looging into the Domain Machine >> Right Click My Computer >> Select Properties >> Click 'Computer Name' tab >> look for the domain name")

More over this would not server the purpose as this will RESET password of only one user and the objective was to RESET the password of 2500 users so I created a BAT file that would contain the entries for each user.

"A referral was returned from the server" message is being displayed when i am executing the RESET command.
I am 100% sure that you are specifying in-correct Domain name. Please correct that and it will work.
Verify the domain name by "Looging into the Domain Machine >> Right Click My Computer >> Select Properties >> Click 'Computer Name' tab >> look for the domain name".

No comments:

Post a Comment

Microsoft Dynamics CRM Team Blog

google stats