Re: AD AutoScripting
From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 05/09/04
- Next message: Joe Richards [MVP]: "Re: How to unhide users properties in Active Directory users and computer"
- Previous message: Joe Richards [MVP]: "Re: How to determine last logon time for a computer account in a domain"
- In reply to: Chai: "AD AutoScripting"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 09 May 2004 13:12:57 -0400
While I don't recommend doing this, if you go get the dsquery/dsmod tools from a
Win2003 install you can do it like
dsquery * -limit 1000 -filter "&(objectcategory=person)(objectclass=user)" |
dsmod user -pwdneverexpires yes
This will do 1000 users, if you need to do more, change the limit size.
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net Chai wrote: > Hi there, > > I using Windows 2000 domain. I want to set all user > account so that their password never expired. > > Because I got few thousands users, I try to use script to > auto the process. > > After look few example and try it, I receive the error > message "ADSI does not support the properties" when I want > to set the accountExpires to 0 using the VB Script. > > Any ideas or example? > > Thanks. > > Chai
- Next message: Joe Richards [MVP]: "Re: How to unhide users properties in Active Directory users and computer"
- Previous message: Joe Richards [MVP]: "Re: How to determine last logon time for a computer account in a domain"
- In reply to: Chai: "AD AutoScripting"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|