reset password by group

  • Thread starter Thread starter jaime richmond
  • Start date Start date
J

jaime richmond

can anyone tell me of a batch file or process that i can use to reset all
userpasswords of one group to a default password then require them to change
it upon first logon. thanks
 
There's several ways to do this, here is one method:

- You can use "DSGET.EXE" to get the members of the group (this is one line
in case it wraps):
dsget.exe group
"CN=MySecurityGroup,OU=MyOrganizationalUnit,DC=mydomain,DC=com" -members


- Then use "DSMOD.EXE" to modify the user account (this is one line in case
it wraps):
dsmod.exe user "CN=John Doe,CN=Users,DC=mydomain,DC=com" -pwd
NewPassword -mustchpwd yes


- Now combine the two commands (send DSGET's output to the input of DSMOD):
dsget.exe group
"CN=MySecurityGroup,OU=MyOrganizationalUnit,DC=mydomain,DC=com" -members|dsm
od.exe user -pwd MyNewPassword -mustchpwd yes
 
Hi Jaime,
jaime said:
can anyone tell me of a batch file or process that i can use to reset
all userpasswords of one group to a default password then require
them to change it upon first logon. thanks

before you do anything like this, make sure, that no one is using Encrypted
File System, because a password change from a third party makes these files
inaccessible for the owner.

Best greetings from Germany
Olaf
 
thanks but can this be done on an entire group level. can i use one script
to change all members of this particular groups password.
 
Jaime,

Did you try my suggestion? You specify the name of the group in this line:
"CN=MySecurityGroup,OU=MyOrganizationalUnit,DC=mydomain,DC=com"
 
Back
Top