Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, March 13, 2013 12:03 AM | 1 vote
Is it possible to use Enter-PSSession on my home LAN without a domain? i'd like to connect to computers within my house and perform remoting. I am getting the following error.
PS C:\Users\michael> Enter-PSSession -ComputerName michaellaptop
Enter-PSSession : Connecting to remote server michaellaptop failed with the following error message : The WinRM client
cannot process the request. If the authentication 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 added to the TrustedHosts
configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not
be authenticated. You can get 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 michaellaptop
-
+ CategoryInfo : InvalidArgument: (michaellaptop:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
PS C:\Users\michael>
All replies (3)
Wednesday, March 13, 2013 12:31 AM ✅Answered | 8 votes
Yep, sure is. The error you're getting explains what you need to do.
Basically, you need to add the remote hosts name to the local machines 'trusted hosts' settings.
Set-Item WSMAN:\Localhost\Client\TrustedHosts -Value * -Force # * means all remote hosts
Check the change with:
Get-Item WSMAN:\Localhost\Client\TrustedHosts
Of course, you need to do this through an administrator powershell session.
You can test the configuration with:
Test-WSMan <remote hostname>
You may need to specify the credentials of an administrator on the remote host:
Test-WSMan <remote hostname> -credential <remote hostname>\admin user> -authentication Negotiate
If all is good, you'll get something like this:
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor : Microsoft Corporation
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 2.0
Inspired by Carlsberg.
Wednesday, March 13, 2013 12:33 AM
Got it working before the post but u hit the nail on the head! I needed to simply do the following
1.) add trustedhosts on each computer
2.) Disable all public network interfaces [ not sure if this was needed ]
Wednesday, March 13, 2013 12:35 AM
Good one!
I don't think (2) is a requirement.
Please mark as answered.
Inspired by Carlsberg.