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!
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!