PS C:\> Invoke-Command { "Hello" } -ComputerName $env:computername [DESKTOP-7AAMJLF] Connecting to remote server DESKTOP-7AAMJLF failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred whileusing Negotiate authentication: A specified logon session does not exist. It may already have been terminated. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication methodandnousernamearespecified. -Kerberosacceptsdomainusernames, butnotlocalusernames. -TheServicePrincipalName(SPN)fortheremotecomputernameandportdoesnotexist. -Theclientandremotecomputersareindifferentdomainsandthereisnotrustbetweenthetwodomains. Aftercheckingfortheaboveissues, trythefollowing: -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. + CategoryInfo : OpenError: (DESKTOP-7AAMJLF:String) [], PSRemotingTransportException + FullyQualifiedErrorId : 1312,PSSessionStateBroken