Script to disable domain user account

Discussion in 'Scripting & Programming' started by Nelix, Nov 3, 2005.

  1. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,416
    3
    82
    Hi all

    I am looking for a script that will let me disable over 300 Domain accounts, Ideally it would read the users full name from a text file I have.

    If you have any links for a script that might do this I would be greatful if you could post them here.
     
    Certifications: A+, 70-210, 70-290, 70-291, 74-409, 70-410, 70-411, 70-337, 70-347
    WIP: 70-346
  2. simongrahamuk
    Honorary Member

    simongrahamuk Hmmmmmmm?

    6,205
    136
    199
    Can't help with the script, but if it's server 2003 you can group select and disable the accounts that way.

    8)
     
  3. Phoenix
    Honorary Member

    Phoenix 53656e696f7220 4d6f64

    5,749
    200
    246
    if you move all the accounts into a single OU you could easily do this with a dsget | dsmod string

    i mean, ive only ever used these tools in 2k3 though
     
    Certifications: MCSE, MCITP, VCP
    WIP: > 0
  4. PAT

    PAT Banned

    158
    1
    27

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.