Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

objUser.SetPassword does not work

Status
Not open for further replies.

Shay2501

MIS
Jun 25, 2003
24
0
0
US
I am trying to write a script to change all of the passwords in an OU to a standard default. I have connected to the OU and I am enumerating through the list of users. I can set things like Description and enable users to get prompted to change their password at next login. However when I try to set or change their password, I get: (null) The network path is not found.

I get this error even if I try to connect to a specific user account right away. Here is the script:

Set objUser = GetObject("LDAP://cn= Username, ou= HR, dc=Domain, dc=com")
objUser.Put "description", "Test Desc"
objUser.SetInfo
objUser.SetPassword "NewPassword"
objUser.SetInfo

Setting the description works, setting the password returns an error. Also, I ran this on a Windows 2003 domain and it works beautifully. I am guessing there is some security parameter that is not letting this go through??

Thanks in advance for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top