Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

any script for setting password never expires to all users

Status
Not open for further replies.

srinars

Technical User
Sep 6, 2001
12
CA

We are planning to uncheck Password never expires chekbox under Account tab for all users accounts in our domain.
Is there any script to do that one shot?
i understand from ldifde we can do batch job for modying user attributes. But i cudnot find the attribute name for
this "Password never expires"?can anyone help in this?

rgds
narayanan
 
hi srinars
well have u tried the ldifde ??
and it does take that attribute :)
u can chck some this post:
thread96-111848 Kapil Aggarwal

Technical Director
Infovalley Interweb Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
hi
thanks. i used ldifde for doing these type of jobs but thing
here is i cudnot find the attribute name to specify for this
Password never expires, like for exchange home server it is
homeMDB and etc.,

can u help me in getting the attribute name to filter from
the AD?

narayanan
 
HI.

Try this command:
net user /?
I don't remember and can't check now if you have this option.
(Also START - HELP and search for NET commands).
If it's available, you can play a little with a text editor and the user list in plain text to create a batch file.

Just remember that services accounts for backup and other server services should have this option set or you'll get problems later.

Bye
Yizhar Hurwitz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top