I have a list of executables(`.msi` and `.exe`) which I have to install on some remote servers (in same domain) *silently* using `PowerShell` script. For that first I am copying all programs from local server to remote servers. Next I am trying to install all these programs one by one to the remote servers. For that I am using below code:

```
Copy-Item -Path "C:\path\to\softwares\*" -Destination "C:\path\to\destination"  # this is copying all softwares on destination path

$destItem = Get-ChildItem -Path "C:\path\to\destination"

foreach($software in $destItem)
{
    $setup = Invoke-Command -ComputerName <computer> -ScriptBlock {$temp=Start-Process "C:\path\to\$software" -ArgumentList "/s" -Wait -PassThrough;$Temp}
}

```

**Problem is:** When I run this script I get the following error:

> 
> [172.xx.xx.xxx] Connecting to remote server 172.xx.xx.xxx 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: (172.xx.xx.xxx:String) [], PSRemotingTransportException  
> 
>  + FullyQualifiedErrorId : CannotUseIPAddress,PSSessionStateBroken
> 
> 
> 

I ran command `winrm quickconfig` on local machine and got this result:

```
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.

```

and from remote servers got this output:

```
WinRm already is set up to recieve requests on this machine.
WinRm already is set up for remote management on this machine.

```

* Windows version: Windows Server 2012R2
* PS version: 4

**Question is:** How can I resolve this issue and can install executables on remote servers?