Adding a Domain Global Group to local Administrators group on serv

Discussion in 'Scripting' started by Terry B, Dec 5, 2005.

  1. Terry B

    Terry B Guest

    Hi guys, we are in the process of deploying an application which require that
    a domain global group be added to the local administrators group on each
    server. Does anyone have a script that will perform this information.
    Unfortunately don't have the time to create the script (then again don't have
    the time to do this manually on 50 servers). Please advise. Thanks.
    Terry B, Dec 5, 2005
    1. Advertisements

  2. Terry B

    Terry B Guest

    Never mind guys I was able to make use of an existing script that I found
    here. I managed to add input so I can check off the computers as I go along
    (Thanks to Greg)

    strComputer = InputBox("Enter ComputerName:", "Computer"
    Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
    Set objUser = GetObject("WinNT://domain1/LG-itadmins")
    Terry B, Dec 5, 2005
    1. Advertisements

Ask a Question

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.