banner



How To Install Msu File Remotely With Powershell

Windows Update Standalone Installer

The patch installation is done via wusa.exe.

The following print screen shows the parameters of the Windows Update Standalone Installer.

local installation

As far as I know, the patch cannot exist installed with native powershell, ways we accept to address the wusa.exe in powershell. Of course Powershell is a nice manner to automate the whole process.

In the post-obit instance, the patch is copied from a UNC share and installed locally.

remote installation

I was not able to run wusa.exe remotely, any tests with workflows, Remotepowershell (Invoke-Command CMDLeet) failed. Even triggering a localy copied batch file caused problems. The wusa.exe procedure was executed with the correct parameters but aborted afterwards a few seconds.
Even with an Invoke-Command and the parameter -Wait it didn't work.

Probably information technology'south considering yous intervene in the system and perform an unauthorized action.

With the PSExec.exe information technology is possible to start the process remotely.

The principle is very simple, you have to copy the patch to the appropriate target computer. Then PSExec starts a remote process on the target calculator and executes the wusa.exe with the corresponding parameters. The wusae.exe must point to the path where the patch was copied.

And and so yous can distribute a patch for multiple computers with a simple iteration.

total remote automation

There are of course several ready-made scripts to install multiple patches on multiple computers. The script which I utilise in the company environment, I have inserted below. The code does not come from me, but from the post-obit forum mail: https://customs.spiceworks.com/topic/2054098-silently-install-patches-remotely-and-reboot?page=1#entry-7246666

Source: https://techblog.jere.ch/2019/05/15/microsoft-local-remote-patchinstallation-with-powershell/

Posted by: gordonnothad86.blogspot.com

0 Response to "How To Install Msu File Remotely With Powershell"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel