account changes for all user

  • Thread starter Thread starter Bob Smith
  • Start date Start date
B

Bob Smith

Does anyone know of a quick way to deselect "User cannot
change password" in windows 2000 AD for a large number of
users.

Thanks in advance,
Bob Smith
 
Matjaz,

Thanks for the help, Although I found ADmodify a great
tool, I did not find that specific attibute, as far as
the script center, although I do not have a lot of
scripting experience i am fumbling through this and
should be able to come up with a solution.

Thanks again,
Bob Smith
 
Thanks for the help, Although I found ADmodify a great
tool, I did not find that specific attibute, as far as
the script center, although I do not have a lot of
scripting experience i am fumbling through this and
should be able to come up with a solution.

REM ====setuser.cmd==== Single line follows, no CR/LF included
For /f "tokens=1,2,3 skip=4 delims= " %%a in ('net user /domain') do
cusrmgr -u %%a +s CanNotChangePassword&cusrmgr -u %%b +s
CanNotChangePassword&cusrmgr -u %%c +s CanNotChangePassword
REM ===EOF====

Ciao, Walter
 
Thanks for the help, Although I found ADmodify a great
tool, I did not find that specific attibute, as far as
the script center, although I do not have a lot of
scripting experience i am fumbling through this and
should be able to come up with a solution.

REM ====Userlist.csv====
useraccount,password(optional),other attributes(optional)
JoeDoe,found,somewhere
ElizaDoolittle,breakfast,atTiffany


REM===userchange.cmd===
for /F "tokens=1 skip=2 delims=," %%a in (userlist.csv) do cusrmgr -u
%%a +s CanNotChangePassword
REM ====End of Batch====

Ciao, Walter
 
Walter,

Thank you very much for the help, I was able to find the
cusrmgr cmd but were can I locate the for cmd, i have
found a forfiles cmd, but it does not appear to be the
same.

Thank you,
Bob Smith
 
The command came up with a syntax of the command is
incorrect, my apologises.
 
Walter,

Thank you very much, sorry for the confusion, the Single
Line was right in front of my face and I did not see it,
once I correct the problem the script ran as expected.
"You the MAN" Thanks again for your assistance.
Bob Smith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top