header1   header
header
header : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
IMPORTANT: PowerShellCommunity.org is moving! - Wednesday, August 15, 2012

PowerShellCommunity.org is moving!  This community software, and the hardware that it sits on, are no longer serving the purposes of this community.  As a result, we have decided to move this community to a new home at PowerShell.org.  PowerShell.org is already up and running with the new community software and in its new location, so please post any new questions that you have on the forums over there instead of posting them on this site.  We've already started getting some great questions from members of the community over there so please, come on over and join us!

While we are going through this transition, this site will remain up for the short term.  New posts may no longer be created on these forums, however replies to existing posts are allowed so that users who posted questions don't have to re-post the same question on the new site.

[UPDATE 28/02/2013] New user registration has been disabled and forums have now been switched to read-only, including for existing posts since all threads that were started should now be completed. If you have a question about content on this site or about PowerShell in general, head over to PowerShell.org and ask it there where there are people actively using the site and answering questions.

If you have any questions, please let us know on the PowerShell.org site.

Thank you,

Kirk "Poshoholic" Munro

 
How to create remote session through SSL
Last Post 13 Jan 2012 11:39 AM by wolfmanii. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
wolfmaniiUser is Offline
New Member
New Member
Posts:3
Avatar

--
13 Jan 2012 11:39 AM
    Hi, All

    My SharePoint server is installed on a Windows 2008 R2 Server and the remot PC I am testing powershell on is a Windows 2008 R2
    server. Both servers are in the same domain.


    I tried to create a remote connection without SSl with the command below and it works fine

       $password = ConvertTo-SecureString 'password' -AsPlainText -Force
       $cred= New-Object System.Management.Automation.PSCredential ('svcsad\jing', $password )
       Enter-PSSession -ComputerName svcssp2010.svcsad.fisc.int -Authentication CredSSp -Credential $cred


    Then I tried to use command below to make SSL connection
     
      $password = ConvertTo-SecureString 'password' -AsPlainText -Force
      $cred= New-Object System.Management.Automation.PSCredential ('svcsad\jing', $password )
      Enter-PSSession -ComputerName svcssp2010.svcsad.fisc.int -Authentication CredSSp -Credential $cred -UseSSl -port 443

    This time, it failed and give this error message:

    ####################################################################################
    Enter-PSSession : Connecting to remote server failed with the following error message : The WinRM client cannot process
     the request. The authentication mechanism requested by the client is not supported by the server or unencrypted traffi
    c is disabled in the service configuration. Verify the unencrypted traffic setting in the service configuration or spec
    ify one of the authentication mechanisms supported by the server.  To use Kerberos, specify the computer name as the re
    mote destination. Also verify that the client computer and the destination computer are joined to a domain. To use Basi
    c, specify the computer name as the remote destination, specify Basic authentication and provide user name and password
    . Possible authentication mechanisms reported by server:     Negotiate For more information, see the about_Remote_Troub
    leshooting Help topic.
    At line:1 char:16
    + Enter-PSSession <<<<  -ComputerName svcssp2010.svcsad.fisc.int -Authentication Basic -Credential $cred -UseSSl -port
    443
        + CategoryInfo          : InvalidArgument: (svcssp2010.svcsad.fisc.int:String) [Enter-PSSession], PSRemotingTransp
       ortException
        + FullyQualifiedErrorId : CreateRemoteRunspaceFailed
    ####################################################################################


    Can anyone tell me how to solve this issue step by step?



    Regards,

    Jing
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Many thanks to our original sponsors: Quest Software • SAPIEN Technologies • Compellent • Microsoft footer
    footer   footer