I have a test Network that I’m using for Network Administration training. I am trying to initiate a PS session on a non-domain connected computer. The computer is on the network and it’s getting an IP address from DHCP. I was able to remote into the computer from my domain controller using RDP.
when I run this command, I receive this error:

PS C:\Windows\system32> Enter-PSSession -ComputerName photonics06 -Authentication Basic -Credential photonics-dc04\admin1
Enter-PSSession : Connecting to remote server photonics06 failed with the following error message : The
WinRM client cannot process the request. Unencrypted traffic is currently disabled in the client
configuration. Change the client configuration and try the request again. For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:1

  • Enter-PSSession -ComputerName photonics06 -Authentication Basic -Cred …
  •   + CategoryInfo          : InvalidArgument: (photonics06:String) [Enter-PSSession], PSRemotingTransportEx 
     ception
      + FullyQualifiedErrorId : CreateRemoteRunspaceFailed
    
    
    
    

Any assistance will be appreciated.
Thank you.

4 Spice ups

How are you attempting to authenticate the PS session? If it’s not on the domain, a domain admin won’t be able to. Launch PS as admin with the local admin account, see if that changes things? There’s also likely a lot of security around PS baked into the domain’s policies that will be missing or heightened on the stand-alone machine.

it appears you are trying to connect to 6 with an account from 4. 6 has no clue to the users on 4.

1 Spice up

Thank you for you’re assistance. I am a total beginner. Can you clarify what you mean when you say connect to six with an account from four?
Thank you.

1 Spice up

Do you mean the PowerShell version I’m using? This is the version number
5.1.20348.2849

1 Spice up

I think I got it working.
Thanks a lot guys.

1 Spice up

Please be sure to come back with your solution for future users!

These instructions worked.

Thanks.

1 Spice up

Glad you got it going. but my reply was saying. you are trying to run a script on photonics06 with an account from photonics-dc04. For non-domain, photonics06 should have no clue about accounts on photonics-dc04. so the account should never be able to authenticate.

1 Spice up

Actually, it’s not working. I think the PSSession is working, but the domain join commands are not. I think it’s asking me for the local credentials and the domain credentials??
I have to leave. I won’t be in front of the equipment. I’ll get back to you guys on Friday.
thanks again.

1 Spice up

Just a thought but the error did say

Unencrypted traffic is currently disabled

You can try and tack an -UseSSL to your command or if you’re using SSH -SSHTransport

1 Spice up

Yes, I will try it.
Thank you.

1 Spice up

I’d use Kerberos or Credssp as the authentication option instead of Basic. Credential needs to be a valid username for the remote computer.

2 Spice ups

Why are you remoting from a domain controller (I’m assuming that’s what this is) photonics-dc04\admin1 to a non domain joined computer? I understand this is a test, but it’s the opposite of best practice, I just wanted to point that out so you are aware before we further assist.

Using these credentials photonics-dc04\admin1 to reach this computer photonics06 will not work. When you establish the PSSession you want to use photonics06\<enter_local_user_here> to establish the connection to photonics6 from photonics-dc04. Photonics-dc04 doesn’t care what user you use to establish the connection, it just has to be an account on photonics06 that has sufficient privileges to establish a PSSession.

1 Spice up

Thank you for this information. When I am in front of the gear I will try.

1 Spice up