PSSession, CredSSP - Request not supported Error

This topic contains 4 replies, has 3 voices, and was last updated by Profile photo of Don Jones Don Jones 3 months, 3 weeks ago.

  • Author
    Posts
  • #50138
    Profile photo of Amar Helloween
    Amar Helloween
    Participant

    Hi All,

    I am taking PSSESSION using CredSSP Authentication(Already configured CredSSP Client and Server),But getting the below Error :

    Query :
    ——-
    $Session = New-PSSession -ComputerName "Test" -Authentication CredSSP -Credential $Cred

    Error :
    ——-
    New-PSSession : [Test]Connecting to remote server[Test] failed with the following error message : The request is not supported.

    CategoryInfo : OpenError : (System.Management....RemoteRunspace:RemoteRunspace) [New-PSSession].PSRemotingTransportException
    FullyQualifiedErrorId : 50,PSSessionOpenFailed

    —————————————-
    Kindly help me to fix this!!

  • #50140
    Profile photo of Don Jones
    Don Jones
    Keymaster

    How are these machines related? Are they in a domain together? Not in a domain? Is the destination computer's name exactly as listed in DNS and/or Active Directory?

  • #50142
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    Also, what PowerShell versions are you running on the client and server?

    • #50148
      Profile photo of Amar Helloween
      Amar Helloween
      Participant

      1. Both Client and Server is running on PS Version 3.0
      2. Both machines are on the same domain.
      3. Destination computer tried with both IP and Host name, am getting the same error.

  • #50150
    Profile photo of Don Jones
    Don Jones
    Keymaster

    So, "Secrets of PowerShell Remoting" gets into some of these details, but...

    Why not just allow the default Kerberos protocol to be used? However, note that you must connect using the target's canonical AD name, in order for the mutual authentication to function. You can't use IP address unless you take different steps, because the computer can't be "found" in AD by IP.

    But CredSSP has a number of requirements; see the "Second Hop" section in https://devopscollective.gitbooks.io/secrets-of-powershell-remoting/content/manuscript/accessing-remote-computers.html. And, double check the CredSSP configuration – the target must be in "Server" mode, the origination must be in "Client" mode, and must specify the server as a trusted delegate.

You must be logged in to reply to this topic.