I've configured a domenstic network with PCs running windows 10 and I'm trying to set up remote access via powershell between these hosts. I've enabled remote access on all the hosts, authorizing all the hosts to control AND be controlled by all the hosts in the network, I've tested the connection between two PCs and it seems to be working cause the following returns no error:

 PS C:\WINDOWS\system32> test-WSman                        
 wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd    
 ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xs 
 ProductVendor   : Microsoft Corporation                        
 ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0

but, when I try to establish a full session between the two hosts with the following command, I get error:

  PS C:\WINDOWS\system32>Enter-PSSession -ComputerName -Credential User1                                                            
  Enter-PSSession : Connecting to remote server failed       
  with the following error message : Access is denied.                               
  For more information, see the about_Remote_Troubleshooting Help topic.                                                       
  At line:1 char:1                                                             
  + Enter-PSSession -ComputerName -Credential User1                        
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo : InvalidArgument:( [Enter-PSSession], PSRemotingTransportException
  + FullyQualifiedErrorId : CreateRemoteRunspaceFailed 

After issuing this command, of course, pops-up the dialog box, asking for password. Maybe, the error could be in the credential I'm issuing...where do I get valid and acceptable credentials(user & password) in Windows, for connecting to a remote machine in my home network?

Do I need to create new ones, with get-credential cmdlet, or maybe credentials are tied to the local account on the machine I'm connecting from, or perhaps on the machine I'm connecting to? I'm totally inexpert in this field so I don't know how to solve it

P.S. I'm in a simply windows workgroup(with no home-group setted), not in a domain so the machines are in peer-to-peer configuration


There are a few PoSH remoting cmdlets that can be used without being administrator or even needing WinRM on the remote host:

Tip: Work Remotely with Windows PowerShell without using Remoting or

WinRM https://technet.microsoft.com/en-us/library/ff699046.aspx

But for much of PoSH remoting, you must be in the local administrators group on the remote host.

See also:

PowerShell Remoting without administrator rights


PowerShell Remoting via WinRM for Non-Admin Users


Configuring WinRM over HTTPS to enable PowerShell remoting



on the computer you are connecting from you will to run need this in admin powershell Set-Item WSMan:\localhost\Client\TrustedHosts -Value "" –Force this makes your computer trust the one you are connecting to ( is all computers) then do New-PSSession –computername –credential nameofcomputer\administrator you need the computername and the useraccount on that computer then put in password and it will work then Enter-PSSession.

  • But the problem is just about the fact that I don't know which credentials should be used(i.e. where to get these credentials). Definitely, I want to know where to get username and possibly a password of the machine I'm trying to connect to. I've tested the password tied to the email account used for accessing windows at the start-up but nothing seems to change – WOPR Aug 21 '18 at 14:24

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.