Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 755
  • Last Modified:

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
0
xnir
Asked:
xnir
  • 3
  • 3
1 Solution
 
McKnifeCommented:
There is a switch for that:
net user user1 /EXPIRES:NEVER
0
 
McKnifeCommented:
Or could it be you will have to add /LOGONPASSWORDCHG:NO ?
0
 
xnirAuthor Commented:
i will try
thanks
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
xnirAuthor Commented:
doesn't work
0
 
McKnifeCommented:
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
0
 
placebo69aCommented:
net user /ADD "newuser" "Pass phrase" /passwordchg:no
netuser "user" /pwnexp:y
aaaand you're on your merry way.
Let me know if this helps. :)
0
 
xnirAuthor Commented:
eventually i removed all the users (test Environment) and recreated them with
net user /ADD "newuser" "Pass phrase" /passwordchg:no

thanks :)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now