Adding Permissions to the RDP Protocol
Updated: February 16, 2011
Applies To: Windows Server 2008 R2
Allow Remote RPC on each virtual machine.
Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at Local and Domain Default Groups (https://go.microsoft.com/fwlink/?LinkId=83477).
To add RDP protocol permissions to a virtual machine
Click Start, point to All Programs, and then click Accessories.
Right-click Command Prompt, and then click Run as administrator.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
At the command prompt, type the following commands:
wmic /node:localhost RDPERMISSIONS where TerminalName="RDP-Tcp" CALL AddAccount "<DOMAIN>\<SERVER_NAME>$",1
wmic /node:localhost RDACCOUNT where "(TerminalName='RDP-Tcp' or TerminalName='Console') and AccountName='<DOMAIN>\\<SERVER_NAME>$'" CALL ModifyPermissions 0,1
wmic /node:localhost RDACCOUNT where "(TerminalName='RDP-Tcp' or TerminalName='Console') and AccountName='<DOMAIN>\\<SERVER_NAME>$'" CALL ModifyPermissions 2,1
wmic /node:localhost RDACCOUNT where "(TerminalName='RDP-Tcp' or TerminalName='Console') and AccountName='<DOMAIN>\\<SERVER_NAME>$'" CALL ModifyPermissions 9,1
Net stop termservice
Net start termservice
Log off the computer.