bluethundr12

Untitled

Mar 4th, 2021
1,414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Get-Content -Path "\\REMOTE_AWS_MACHINE\c$\App_configuration.txt"
  3. Get-Content : Cannot find path '\\REMOTE_AWS_MACHINE\c$\App_configuration.txt' because it does not exist.
  4. At line:1 char:1
  5. + Get-Content -Path "\\REMOTE_AWS_MACHINE\c$\App_configuration.txt"
  6. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7.     + CategoryInfo          : ObjectNotFound: (\\SRV1.jokefire...nfiguration.txt:String) [Get-Content], ItemNotFoundException
  8.     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
  9.  
  10.  
  11. Invoke-Command -ComputerName REMOTE_AWS_MACHINE -ScriptBlock { COMMAND } -credential Administrator
  12. [REMOTE_AWS_MACHINE] Connecting to remote server REMOTE_AWS_MACHINE failed with the following error message : The WinRM client cannot process the request. If the
  13. 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
  14. must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be
  15. authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the
  16. about_Remote_Troubleshooting Help topic.
  17.     + CategoryInfo          : OpenError: (REMOTE_AWS_MACHINE:String) [], PSRemotingTransportException
  18.     + FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken
Advertisement
Add Comment
Please, Sign In to add comment