New-PSSession giving below error at times

%3CLINGO-SUB%20id%3D%22lingo-sub-814275%22%20slang%3D%22en-US%22%3ENew-PSSession%20giving%20below%20error%20at%20times%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-814275%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3EHi%20Team%2C%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22msg%20l2%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22msg%20l2%22%3EI%20am%20getting%20below%20error%20at%20times%20when%20using%20New-PSSession.%20Please%20do%3C%2FDIV%3E%3CDIV%20class%3D%22msg%20l2%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3ENew-PSSession%20%3A%20%5BXXXXXXXX%5D%20Connecting%20to%20remote%20server%20xxxxxxxxxx%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Efailed%20with%20the%20following%20error%20message%20%3A%20WinRM%20cannot%20process%20the%20request.%20%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3EThe%20following%20error%20with%20errorcode%200x80090311%20occurred%20while%20using%20Kerberos%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Eauthentication%3A%20There%20are%20currently%20no%20logon%20servers%20available%20to%20service%20the%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Elogon%20request.%20%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3EPossible%20causes%20are%3A%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-The%20user%20name%20or%20password%20specified%20are%20invalid.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-Kerberos%20is%20used%20when%20no%20authentication%20method%20and%20no%20user%20name%20are%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Especified.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-Kerberos%20accepts%20domain%20user%20names%2C%20but%20not%20local%20user%20names.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-The%20Service%20Principal%20Name%20(SPN)%20for%20the%20remote%20computer%20name%20and%20port%20does%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Enot%20exist.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-The%20client%20and%20remote%20computers%20are%20in%20different%20domains%20and%20there%20is%20no%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Etrust%20between%20the%20two%20domains.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3EAfter%20checking%20for%20the%20above%20issues%2C%20try%20the%20following%3A%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-Check%20the%20Event%20Viewer%20for%20events%20related%20to%20authentication.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-Change%20the%20authentication%20method%3B%20add%20the%20destination%20computer%20to%20the%20WinRM%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3ETrustedHosts%20configuration%20setting%20or%20use%20HTTPS%20transport.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3ENote%20that%20computers%20in%20the%20TrustedHosts%20list%20might%20not%20be%20authenticated.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E-For%20more%20information%20about%20WinRM%20configuration%2C%20run%20the%20following%20command%3A%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3Ewinrm%20help%20config.%20For%20more%20information%2C%20see%20the%20about_Remote_Troubleshooting%20%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3EHelp%20topic.%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3EAt%20D%3A%5CAdminScripts%5CDeploymentScript.ps1%3A228%20char%3A24%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E%2B%20...%20%24appServerses%20%3D%20New-PSSession%20-Computer%20%24s%20-Credential%20%24appUNPASSWORD%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E%2B%20CategoryInfo%20%3A%20OpenError%3A%20(System.Manageme....RemoteRunspace%3ARe%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3EmoteRunspace)%20%5BNew-PSSession%5D%2C%20PSRemotingTransportException%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22leaf%20%20ch_19%22%3E%3CDIV%20class%3D%22msg%20l2%22%3E%3CU%3E%3CU%3E%5B06%3A39%3A57%5D%3C%2FU%3E%3C%2FU%3E%3CI%3E%3CI%3E%5BStep%201%2F1%5D%20%3C%2FI%3E%2B%20FullyQualifiedErrorId%20%3A%20AuthenticationFailed%2CPSSessionOpenFailed%3C%2FI%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-814275%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-815874%22%20slang%3D%22en-US%22%3ERe%3A%20New-PSSession%20giving%20below%20error%20at%20times%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-815874%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20error%20message%20already%20tells%20you%20what%20might%20be%20the%20issue.%20You%20need%20to%20tell%20us%20what%20list%20items%20you%20checked%20or%20are%20having%20problems.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor
Hi Team, 
 
I am getting below error at times when using New-PSSession. Please do
 
[06:39:57][Step 1/1] New-PSSession : [XXXXXXXX] Connecting to remote server xxxxxxxxxx
[06:39:57][Step 1/1] failed with the following error message : WinRM cannot process the request.
[06:39:57][Step 1/1] The following error with errorcode 0x80090311 occurred while using Kerberos
[06:39:57][Step 1/1] authentication: There are currently no logon servers available to service the
[06:39:57][Step 1/1] logon request.
[06:39:57][Step 1/1] Possible causes are:
[06:39:57][Step 1/1] -The user name or password specified are invalid.
[06:39:57][Step 1/1] -Kerberos is used when no authentication method and no user name are
[06:39:57][Step 1/1] specified.
[06:39:57][Step 1/1] -Kerberos accepts domain user names, but not local user names.
[06:39:57][Step 1/1] -The Service Principal Name (SPN) for the remote computer name and port does
[06:39:57][Step 1/1] not exist.
[06:39:57][Step 1/1] -The client and remote computers are in different domains and there is no
[06:39:57][Step 1/1] trust between the two domains.
[06:39:57][Step 1/1] After checking for the above issues, try the following:
[06:39:57][Step 1/1] -Check the Event Viewer for events related to authentication.
[06:39:57][Step 1/1] -Change the authentication method; add the destination computer to the WinRM
[06:39:57][Step 1/1] TrustedHosts configuration setting or use HTTPS transport.
[06:39:57][Step 1/1] Note that computers in the TrustedHosts list might not be authenticated.
[06:39:57][Step 1/1] -For more information about WinRM configuration, run the following command:
[06:39:57][Step 1/1] winrm help config. For more information, see the about_Remote_Troubleshooting
[06:39:57][Step 1/1] Help topic.
[06:39:57][Step 1/1] At D:\AdminScripts\DeploymentScript.ps1:228 char:24
[06:39:57][Step 1/1] + ... $appServerses = New-PSSession -Computer $s -Credential $appUNPASSWORD
[06:39:57][Step 1/1] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[06:39:57][Step 1/1] + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:Re
[06:39:57][Step 1/1] moteRunspace) [New-PSSession], PSRemotingTransportException
[06:39:57][Step 1/1] + FullyQualifiedErrorId : AuthenticationFailed,PSSessionOpenFailed
1 Reply
Highlighted

The error message already tells you what might be the issue. You need to tell us what list items you checked or are having problems.