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?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian

    Migrate Users from win2k to win2k

    Brian, Apr 14, 2004, in forum: Microsoft Windows 2000
    Replies:
    1
    Views:
    298
    Jerold Schulman
    Apr 14, 2004
  2. Replies:
    0
    Views:
    162
  3. Guest

    Add or remove programs remotely

    Guest, Nov 17, 2004, in forum: Microsoft Windows 2000
    Replies:
    1
    Views:
    2,045
    Jerold Schulman
    Nov 17, 2004
  4. Kilroy
    Replies:
    0
    Views:
    306
    Kilroy
    Jan 19, 2005
  5. Guest
    Replies:
    3
    Views:
    2,893
    Guest
    Jan 20, 2005
Loading...

Share This Page