Target IP is added to TrustedHosts. Still getting WinRM authentication failure???

Sanya2
Tera Contributor
We are getting the following WinRM error despite adding this IP address in the TrustedHosts. What could be the reason?
WMI query on host 10.x.x.y authentication failure. query: Select * From Win32_Process WHERE (ProcessId = 324708) error: Winrs error:The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information on how to set TrustedHosts run the following command: winrm help config.. Access is Denied

Here's the detail from ecc logs;

08/16/20 08:54:12 (184) Worker-Interactive:ADMEPowershell-4e4d102f1b2a9010f45443b3cd4bcb59 WARNING *** WARNING *** Fatal Exception :
New-PSSession : [10.x.x.y] Connecting to remote server 10.x.x.y failed with the following error message :
The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions:
the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided.
Use winrm.cmd to configure TrustedHosts.
Note that computers in the TrustedHosts list might not be authenticated.
For more information on how to set TrustedHosts 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 10.x.x.y -Port 5985 -Credential $Creden ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CannotUseIPAddress,PSSessionOpenFailed
Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At D:\MidServer-SBOX\agent\scripts\Powershell\ADMEnhanced\ADMELauncherWinRM.psm1:103 char:44
+ $firstTime = Invoke-Command -session $ps -scriptblock ${functio ...
+ ~~~
+ CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand

Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At D:\MidServer-SBOX\agent\scripts\Powershell\ADMEnhanced\ADMELauncherWinRM.psm1:109 char:41
+ $result = Invoke-Command -session $ps -scriptblock ${function:l ...
+ ~~~
+ CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand

Error launching process
At D:\MidServer-SBOX\agent\scripts\Powershell\ADMEnhanced\ADMELauncherWinRM.psm1:113 char:9
+ throw "Error launching process"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Error launching process:String) [], RuntimeException
+ FullyQualifiedErrorId : Error launching process



8 REPLIES 8

Akshata jamdar
Mega Guru

Hello Sanya,

check once if the credential are correct. Or you can run quick discovery for this particular IP address you can get to know IP address is reachable or not.

 

Please let me know if it works.

 


Kindly mark an answer as correct and helpful if it will resolve your query.

Regards,

Akshata

Credentials are working fine. Above message & log type is when I did the quick discovery. 

Ashutosh Munot1
Kilo Patron
Kilo Patron

Target IP is configured as part of the TrustedHosts.