Questions

How can we add doamin user to local admin group through GP

+
0 Votes
Locked

How can we add doamin user to local admin group through GP

harikundappil
How can we add doamin user to local admin group through GP
  • +
    0 Votes
    IC-IT

    But you also may want to consider setting up a security group that contains all the personnel that you want to have local administrator rights. That way when the membership changes you only need to modify the Group in AD, instead of having to script a deletion and addition again.
    here is one method.
    Create a bat or cmd file and run it as a machine startup script. Note that the target machine(s) can not be in the default computer container, they must be in an OU.
    net localgroup Administrators UsersNameToBeAdded /add

    or check out this thread with a nice little VB script (and an interesting discussion.
    http://www.msfn.org/board/lofiversion/index.php/t72395.html

  • +
    0 Votes
    IC-IT

    But you also may want to consider setting up a security group that contains all the personnel that you want to have local administrator rights. That way when the membership changes you only need to modify the Group in AD, instead of having to script a deletion and addition again.
    here is one method.
    Create a bat or cmd file and run it as a machine startup script. Note that the target machine(s) can not be in the default computer container, they must be in an OU.
    net localgroup Administrators UsersNameToBeAdded /add

    or check out this thread with a nice little VB script (and an interesting discussion.
    http://www.msfn.org/board/lofiversion/index.php/t72395.html