1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script to disable domain user account

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

  1. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,412
    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
    WIP: 70-294
  2. simongrahamuk
    Honorary Member

    simongrahamuk Hmmmmmmm?

    6,199
    125
    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,726
    175
    221
    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 Byte Poster

    158
    1
    27

Share This Page

Loading...