Windows 10 WinRM remoting server with local Adminnistrator account

  • Thread starter Thread starter ShahyadSharghi
  • Start date Start date
S

ShahyadSharghi

I have a server Windows 2012R2 Standard in the domain. I can have a powershell remote session when i use a domain account. but it doesnt work using a local account. both user accounts are in the administrators group

the following command is working fine.


New-PSSession -ComputerName myservername -Credential mydomainname\myusername1


but the following command using a local account

New-PSSession -ComputerName myservername -Credential myservername\myusername2


raises the following error message

New-PSSession : [myservername] Connecting to remote server myservername 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. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names, but not local user names. -The Service Principal Name (SPN) for the remote computer name and port does not exist. -The client and remote computers are in different domains and there is no trust between the two domains. After checking for the above issues, try the following: -Check the Event Viewer for events related to authentication. -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. Note that computers in the TrustedHosts list might not be authenticated. -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:1 + New-PSSession -ComputerName myservername -Credential my ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTran sportException + FullyQualifiedErrorId : AuthenticationFailed,PSSessionOpenFailed


Continue reading...
 
Back
Top