January 15, 2016 at 9:38 am #33959
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?
January 15, 2016 at 10:04 am #33960
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.
January 15, 2016 at 10:08 am #33961
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.
January 15, 2016 at 10:12 am #33962
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.
January 22, 2016 at 1:07 pm #34208
You also need to make sure that your network location is set to anything but Private network. And set the default admin password.
You must be logged in to reply to this topic.