Powershell - Copying File to Remote Host and Executing Install exe using WMI
问题 EDITED: Here is my code now. The install file does copy to the remote host. However, the WMI portion does not install the .exe file, and no errors are returned. Perhaps this is a syntax error with WMI? Is there a way to just run the installer silently with PsExec? Thanks again for all the help sorry for the confusion: #declare params param ( [string]$finalCountdownPath = "", [string]$slashes = "\\", [string]$pathOnRemoteHost = "c:\temp\", [string]$targetJavaComputer = "", [string]$compname =