I have tried to install a .exe file with PowerShell on remote computer but I have following error:
Connecting to remote server 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.
I run the following command:
Invoke-Command -ComputerName y.y.y.y -ScriptBlock{"d:UltraVNC_1_2_10_X86_Setup"
I changed the execution policy to RemoteSigned
, but that didn't help.