powershellremotingcredentialsunauthorizedaccessexcepti

Error Access denied when execute Get-WSManCredSSP command using Remote PSSession


I have Windows XP x86, and Powershell 2.0.

I open Powershell Console, and I execute Enter-PSSession command to connect Windows 2008 Server.

I want execute Get-WSManCredSSP command remotely, but I get error Access is denied.

PS C:\Documents and Settings\myuser> Enter-PSSession -Computername servermoss -Credential servermoss\installeruser

[servermoss]: PS C:\Users\installeruser\Documents> Get-WSManCredSSP -Verbose
Get-WSManCredSSP : Access is denied.
    + CategoryInfo          : PermissionDenied: (:) [Get-WSManCredSSP], UnauthorizedAccessException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.WSMan.Management.GetWSManCredSSPCommand

Access is denied.
    + CategoryInfo          :
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.GetWSManCredSSPCommand

SOLUTION: CredSSP not supported by WinRM 2.0 PowerShell

Any suggestions?


Solution

  • In fact, you need to Enter-PSSession -Authentication CredSSP, but before that Enable-WSManCredSSP -Role Client -DelegateComputer servermoss is required on your local computer, but this doesn't work in XP. It seems WsMan CredSSP is not supported in XP.