Add/Remove users membership to groups remotely -win2k

Discussion in 'Microsoft Windows 2000' started by omegagx@gmail.com, Aug 18, 2004.

  1. Guest

    Hi
    I want to add an Active Directory group to a group of Local
    Administrators on 200 local machines. For example, in the domain
    "test1", add group called "test1\local-admin" to "Administrators"
    group on every computer in the domain. I found a script:

    'adduser.vbs
    'adds a user or group to a group
    Set objGroup = GetObject("WinNT://" & Wscript.Arguments(0) & "/" & _
    Wscript.Arguments(1))

    objGroup.add "WinNT://" & Wscript.Arguments(0) & "/" & _
    Wscript.Arguments(2)


    but that only works on users and only local users - not domain users.
    If you have any ideas on how to do this, I'd really appreciate it.
    Thank you very much.

    Mike Gorn.
     
    , Aug 18, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. andy

    Dual boot win2k and win2k ??

    andy, Aug 8, 2003, in forum: Microsoft Windows 2000
    Replies:
    2
    Views:
    346
    Ormand222
    Aug 8, 2003
  2. Mike
    Replies:
    3
    Views:
    466
  3. Brian

    Migrate Users from win2k to win2k

    Brian, Apr 14, 2004, in forum: Microsoft Windows 2000
    Replies:
    1
    Views:
    422
    Jerold Schulman
    Apr 14, 2004
  4. Replies:
    0
    Views:
    217
  5. Guest

    Add or remove programs remotely

    Guest, Nov 17, 2004, in forum: Microsoft Windows 2000
    Replies:
    1
    Views:
    2,168
    Jerold Schulman
    Nov 17, 2004
  6. Guest

    Remove games remotely

    Guest, Dec 31, 2004, in forum: Microsoft Windows 2000
    Replies:
    2
    Views:
    783
    John John
    Jan 1, 2005
  7. Guest
    Replies:
    3
    Views:
    3,045
    Guest
    Jan 20, 2005
  8. Guest

    Global groups and local groups....why aglp?

    Guest, Jan 20, 2005, in forum: Microsoft Windows 2000
    Replies:
    1
    Views:
    1,737
    Ryan Hanisco
    Jan 22, 2005
Loading...