When I try to establish PowerShell session with the user "Administrator" on remote desktop I can successfully establish the sesssion, but it fails when my user is standarduser or RemoteDesktopUser.
PS C:\WINDOWS\system32> C:\Users\Samantha.dek\Desktop\tru.ps1 New-PSSession : [DESKTOP-SR6UD6M] Connecting to remote server DESKTOP-SR6UD6M failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. At C:\Users\Samantha.Dek\Desktop\tru.ps1:11 char:6 + $s = New-PSSession -ComputerName $AppServer -Credential $cred + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed