how to set up user account for remote desktop windows 10 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"