Add domain users to an local group on a remote pc

A simple script, but very handy!I made this just because it's easy to use, I guess more people like to do most things remotely.Any comments or questions are welcome!PS. Fill in your own domain!You can edit the script to automatically choose a local group and remove the "read host

 
 
 
 
 
(1)
1,408 times
Add to favorites
Active Directory
11/1/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • how can i use $USER and $objUSER for multiple input?
    2 Posts | Last post April 24, 2013
    • For Example, I want to add user A,B,C at the same time by using the script.
      
      ....
      Please update me by my email id 
      mullah@alzahrani.com.sa
    • Hi There,
      
      You can change the line:
      
      $user = Read-Host "enter domain user id"
      
      to $user = "c:\user.txt"
      
      And then you can put the users you want to add in the text file.
      
      Is this a solution for you?