I ran into one issue about PS-Remoting.
I have one machine not in the domain called "ANCA-369LMJKL21", and I have set up everything for that for PS-remoting. Enable PSRemoting
Then I have another machine to try to remote the previous one "ANCA-369LMJKL21". This machine is in the domain of my company.
Once I use the command "New-PSSession -Computer ANCA-369LMJKL21 -credential $VMcreds", I always received the following error:
New-PSSession : [ANCA-369LMJKL21] Connecting to remote server ANCA-369LMJKL21 failed with the following error message : WinRM cannot
process the request. The following error with errorcode 0x80090311 occurred while using Kerberos authentication: We can't sign you in
with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try
again. If you previously signed in on this device with another credential, you can sign in with that credential.
I also tried "Test-WSMan -Computer 'ANCA-369LMJKL21'", which works well.
Test-WSMAN
I am guessing it is a cross-domain issue, but does anyone have workaround for that?
User contributions licensed under CC BY-SA 3.0