Hi
OK I will start by giving you the scenario
We have a call centre with Team leaders and management, and then call centre staff.
I have created the following script as per below and
this works OK.
@echo off
SET /P usr=Please type the username you wish to reset:
net user %usr% * /domain /Active:yes
pause
However I need this so people can search names within AD rather than having to get the username correct.
ie, at the moment the person has to type jsmith, I want to be able to do john smith then it finds the user to reset the password.
Please email back.
Searching AD with a bat file
Moderator: DosItHelp
Re: Searching AD with a bat file
Sorry guys This also needs to create a log file showing the date and time of who changed the password, and also the username of who did it.
Re: Searching AD with a bat file
I haven't worked wit AD in a few years but I think DSquery can do what you want. If not give one of Joe's tools a try.
http://www.joeware.net/freetools/
http://www.joeware.net/freetools/