Hi ,
I have created 2 virtual machines and i have my windows 10.
I have established a powershell remoting on one of my vms through my computer,but while in the remote powershell session i am trying to run a command on my another vm i am getting a error
[192.168.194.134]: PS C:\Users\Administrator> Invoke-Command -ComputerName kunal -ScriptBlock { get-process}
[kunal] Connecting to remote server kunal 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.
- CategoryInfo : OpenError: (kunal:String) , PSRemotingTransportException
- FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken
I am very confused about wsmancred ssp where to enable it and how to get rid of this error
4 Spice ups
Evan7191
(Evan7191)
2
Are the VMs joined to the same domain as your computer?
So basically no they are not joined to any domain,it’s just 2 VMS and my main computer but all the computers are part of the same network
Evan7191
(Evan7191)
4
If you join the VMs to the domain, you can use Kerberos authentication, which WinRM uses by default.
1 Spice up
I am trying to use the wincredssp method
So which one will be the client and which one will be the server!!
Because I am allready powershell remoting to one of my VMS from my main computer
Evan7191
(Evan7191)
8
If I understand correctly, the local computer is considered the client, and the remote computer is considered the server.
I have enabled the wscredssp as client on the local computer and wscredssp as server on the the remote computer which I am remoting through powershell but still I get this error,do I have to do anything on the 3rd computer
Evan7191
(Evan7191)
10
Did you configure it on the third computer?
1 Spice up
So I have enabled wsmancred ssp with the role client on my local computer and wsmancredssp as server on the vm in which I am powershell remoting to.what to do on the 3rd one
Evan7191
(Evan7191)
12
The other VM also would need to be configured with the server role.
1 Spice up
Okay will try that and let you know ,thank you so much
[192.168.194.134]: PS C:\Users\Administrator> invoke-command -computername “192.168.194.135” -scriptblock { get-process }
[192.168.194.135] Connecting to remote server 192.168.194.135 failed with the following error message : Access is
denied. For more information, see the about_Remote_Troubleshooting Help topic.
- CategoryInfo : OpenError: (192.168.194.135:String) , PSRemotingTransportException
- FullyQualifiedErrorId : AccessDenied,PSSessionStateBroken
I did what you suggested by enabling wsmancredssp as client on the local computer and wsmancredssp as sever on both the 2 vms
still i am getting the error
invoke-command -computername 192.168.194.135 -ScriptBlock { get-process } -Credential get-cred -Authentication credssp
[192.168.194.135] Connecting to remote server 192.168.194.135 failed with the following error message : A specified
logon session does not exist. It may already have been terminated. For more information, see the
about_Remote_Troubleshooting Help topic.
- CategoryInfo : OpenError: (192.168.194.135:String) , PSRemotingTransportException
- FullyQualifiedErrorId : 1312,PSSessionStateBroken
i tried this and i am getting this error
Evan7191
(Evan7191)
16
These errors are different than one you got before. One says “Access is denied,” and the other says " A specified logon session does not exist. It may already have been terminated."
When you ran Enable-WSManCredSSP on your computer, did you use the -DelegateComputer parameter to specify the fully qualified domain name of the second VM?
1 Spice up
I will check it and let me know
I think the problem is with my local client as it’s not running the enable-wsmancredssp -role client as it’s a windows 10 home ,I will try to install gpedit on windows 10 home and will try it
Have you changed your WinRM configuration modifying the TrustedHost parameter? You need to add your “client” there. A detailed guide regarding WinRM configuration and PowerShell remoting in particular, and remote management in general, can be found here Allow Remote Connections on Another Computer . Just follow the steps described, and you will get through. Hope that helps.
I fixed the issue by registering the psession