Re: AD AutoScripting

From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 05/09/04


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 


Relevant Pages

  • AD AutoScripting
    ... I using Windows 2000 domain. ... account so that their password never expired. ... Because I got few thousands users, I try to use script to ... Chai ...
    (microsoft.public.win2000.active_directory)
  • Protecting against dDOS bots (was: Newbie php problem)
    ... The form mail script posted that was used, ... requires the applicant to pass some kind of Turing test, ... Turing test if the account balance ever drops to zero. ... Log into the same account repeatedly, which consumes your credit ...
    (alt.php)
  • Re: Entourage account setup applescript not working
    ... I pasted the script at the end just in case. ... When comparing the account settings on 2 computers, ... This script assists a user with the setup of his Exchange account ... Customize the network and server properties below with information ...
    (microsoft.public.mac.office.entourage)
  • Re: Error 15401 using sp_grantlogin (not addressed by current KB articles)
    ... Restarting Windows 2000 resolved the problem for this particular account, ... confused when it sees a duplicate SID. ... > One way to get SQL Server to agree with the renamed NT ... > Preview (to ensure the script was created), ...
    (microsoft.public.sqlserver.security)
  • Re: Local account creation
    ... While this script works fine for my 2003 environment, ... use the script in a startup GPO so that there a generic local admin account ... Dim objNetwork, strComputer, strUser ...
    (microsoft.public.windows.server.scripting)