Login

 
Registration

If you are not registered:

Register Now

Contact

Please do not hesitate to contact us if you have any queries, or visit our website:

Visit our Website
www.node4.co.uk

Email our helpdesk
info@node4.co.uk
sales@node4.co.uk
support@node4.co.uk

Call us
General enquiries: 0845 123 2222
Support: 0845 123 2229
Fax: 0845 123 2221

N4Status

Node4 status page detailing information about incidents and planned maintenance:

http://www.n4status.co.uk

Knowledgebase
Setting All Users in an OU's password never to expire in AD (bulk setting change)
Posted by Michael Burch on 28 April 2016 10:13 AM

On a Domain Controller, run command prompt as an administrator and run the command;

dsquery user "OU=[target OU or domain for all OUs],DC=[your domain],DC=[your domain extension]" -limit 2000 [If your OU has more than 100 users the "limit" flag is uses to set a number greater than the actual amount of users] | dsmod user -pwdneverexpires yes

e.g.

dsquery user "OU=The Diocese,DC=thediocese,DC=local" -limit 2000 | dsmod user -pwdneverexpires yes

 

Note: The option "User must change password at next logon" will be removed.

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: