Set up PS remoting on home edition

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of Vanegas Victor Vanegas Victor 8 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33959
    Profile photo of Gerard Ashton
    Gerard Ashton
    Participant

    I'm just learning PowerShell and taking the Getting-Started-with-Powershel-3.0-Jump-Start from the Microsoft Virtual Academy. I have Windows 10 home edition on 2 machines. The command suggested to enable remoting, "enable-psremoting", ran OK but remoting does not work. For example, "Enter-PSSession -computername anothercomputer" gives the error message

    Enter-PSSession : Connecting to remote server anothercomputer failed with the following error message : The WinRM client cannot process the request. If the authentic
    scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be
    the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. Yo
    more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + Enter-PSSession -computername anothercomputer
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (anothercomputer:String) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

    So what is the best way to set up remoting in this environment?

    #33960
    Profile photo of tommymaynard
    tommymaynard
    Participant

    Home editions cannot join Windows Active Directory domains, which means that Kerberos cannot be used as the authentication method. This means you'll need to read up on TrustedHost, as the error message indicates. When this is complete, you may need to include the -Authentication parameter (when using Enter-PSSession) with a different value, as well. Read the full help on Enter-PSSession by entering Get-Help -Name Enter-PSSession -ShowWindow.

    #33961
    Profile photo of Gerard Ashton
    Gerard Ashton
    Participant

    Thanks tommymaynard, I didn't know whether it was better to learn about trusted hosts or https transport, which the error message hints is the other way to go. Thanks to your pointer, I'll learn about trusted hosts.

    #33962
    Profile photo of Matt Bloomfield
    Matt Bloomfield
    Participant

    You'll also find more information in the free PowerShell.org book Secrets of PowerShell Remoting.

    Something you may wish to consider doing is getting hold of a free hypervisor such as VirtualBox or VMware player and then downloading an evaluation version of Windows server. It doesn't take an awful lot of resources to run a couple of virtual machines and you'll be able to set up an Active Directory domain.

    #34208
    Profile photo of Vanegas Victor
    Vanegas Victor
    Participant

    Hi
    You also need to make sure that your network location is set to anything but Private network. And set the default admin password.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.