Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.