Link to home
Start Free TrialLog in
Avatar of xnir
xnirFlag for Israel

asked on

password policy on local server 2003 with multi users

I have a test server, windows 2003 standard R2 SP2, machine is in standalone and workgroup
I created hundreds of users as part of the test environment using:
net user user1 Pass1 /ADD 
Now I have those users locally on the machine but as part of the test i need to login with them, but get on each user that password is expired and needs to be changed.
What will be the best way to disable this local policy? Can I use net use for all of them?

Thanks
Avatar of McKnife
McKnife
Flag of Germany image

There is a switch for that:
net user user1 /EXPIRES:NEVER
Or could it be you will have to add /LOGONPASSWORDCHG:NO ?
Avatar of xnir

ASKER

i will try
thanks
Avatar of xnir

ASKER

doesn't work
Doesn't? For me it does remove the checkbox "user must change password at next logon" and that seems to be what you want.
net user user1 /LOGONPASSWORDCHG:NO
ASKER CERTIFIED SOLUTION
Avatar of placebo69a
placebo69a

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xnir

ASKER

eventually i removed all the users (test Environment) and recreated them with
net user /ADD "newuser" "Pass phrase" /passwordchg:no

thanks :)