Mar 4th, 2021
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Invoke-Command -ComputerName REMOTE_MACHINE -ScriptBlock { COMMAND } -credential Administrator
  2. [REMOTE_MACHINE] Connecting to remote server REMOTE_MACHINE failed with the following error message : The WinRM client cannot process the request. If the
  3. authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine
  4. must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be
  5. authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the
  6. about_Remote_Troubleshooting Help topic.
  7.     + CategoryInfo          : OpenError: (REMOTE_MACHINE:String) [], PSRemotingTransportException
  8.     + FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.