remote desktop set a user code example
Example: powershell add user to remote desktop group
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "UserName"
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "UserName"