Link to home
Start Free TrialLog in
Avatar of itbabe
itbabe

asked on

I need an automated way to add users to the "Remote Desktop Users"-group.

I need an automated way to add users to the "Remote Desktop Users"-group of 10 pc's.
I have an account that has administrative privileges on these pc's and want to add them easily.
Avatar of ManicD
ManicD
Flag of United Kingdom of Great Britain and Northern Ireland image

C:\>net group /?
The syntax of this command is:


NET GROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
          groupname {/ADD [/COMMENT:"text"] | /DELETE}  [/DOMAIN
          groupname username [...] {/ADD | /DELETE} [/DOMAIN]


thus you need the command

net group Group_Name User_name /add
Sorry, forgot to credit my link

http://www.ss64.com/nt/net_useradmin.html
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial