You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
With PowerShell version 6.1 preview and PSRP 1.4.2-2, attempting to create a new PSSession using Basic Authentication and -UseSSL reports error code 2 (MI_RESULT_ACCESS_DENIED)
Actual:
New-PSSession : [dantradesk] Connecting to remote server dantradesk failed with the following error message : Basic Authorization failed for user psrptest@dantradesk For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
Closing. The issue is with the username in the credential. Using a machine qualified user name, such as machinename\user or user@machinename is failing. Using an unqualified username succeeds.
With PowerShell version 6.1 preview and PSRP 1.4.2-2, attempting to create a new PSSession using Basic Authentication and -UseSSL reports error code 2 (MI_RESULT_ACCESS_DENIED)
Repro:
PS> $cred = Get-Credential username@hostname
PS> $session = New-PSSession -Computer -Credential $cred -Authentication Basic -UseSSL
Expected:
A PSSession is created.
Actual:
New-PSSession : [dantradesk] Connecting to remote server dantradesk failed with the following error message : Basic Authorization failed for user psrptest@dantradesk For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
The text was updated successfully, but these errors were encountered: