Skip to content

Instantly share code, notes, and snippets.

@okram999
Created February 20, 2019 19:23
Show Gist options
  • Save okram999/f62faea8a17085b8e84e2e01140a371e to your computer and use it in GitHub Desktop.
Save okram999/f62faea8a17085b8e84e2e01140a371e to your computer and use it in GitHub Desktop.
logs.txt
PS C:\Users\nokram> Invoke-Command -ComputerName 10.181.140.188 -ScriptBlock { Get-ChildItem C:\ } -credential Administrator
[10.181.140.188] Connecting to remote server 10.181.140.188 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.
+ CategoryInfo : OpenError: (10.181.140.188:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : CannotUseIPAddress,PSSessionStateBroken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment