how to include desktop access to users 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"