Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How best to manually install patches using enter-pssession -computername remoting capability

$
0
0

Hello, 

We do patching using a tool but sometimes patches do not install and we need to RDC to a server then double click the .exe/.msu patch file to get it to install.  How can we utilize PowerShell 3.0 to remotely connect to a server then direct it to install a particular .exe/.msu file?  I am thinking: enter-pssession -computername %servername% to connect but am not sure how exactly once in to get it via Powershell to run an .exe/.msu file.  If there are patch files Q123456.exe and Q654321.msu located in C:\Windows\Patches folder on remote computer how would you use PowerShell 3.0 client to remotely install those patches and save the trouble of having to RDP to the server and manually double click those?

Thanks!


Matt


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>