Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wan't to make a script that connects to remote machine and add specific domain user to list of users who can connect to that machine using Remote Desktop.

How to do that using Powershell?

share|improve this question

I would actually suggest you setup a Group Policy to add the users to the local "Remote Desktop Users" group. That way you don't have to worry about the computers being on and if the computer gets redeployed the group membership gets applied automatically.

share|improve this answer
I agree with Scott but if you did want to pursue the Powershell route then this would be a good place to start. – nimizen Apr 5 '11 at 12:21

I need a Powershell script, to easy enable users access to some machines. I'm not an administrator, so I can't influence group polices. Anyway I found a workaround using psexec from SysInternals and NET command. Works well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.