
# Secondly, when you get a cab file extracted, it could be installed by dism.exeĭism /online /add-package /NoRestart /PackagePath:C:\windows\temp\Windows10.0-KB4577586-圆4.cabīoth expand and dism commands could run remotely without any problem. # Firstly, an MSU file could be extracted by expand.exeĮxpand -f:*. Wish it could help you to resolve some similar issues.īefore I share the entire function, there are two tricks need a bit explanation.

Sounds simple, right Let’s jump in and see how to uninstall software using PowerShell. This way, you can uninstall a program from thousands of PCs with just one script. The advantage is you can send any number of networked PCs an uninstall command. Today, I'd like to show you a much more simplified method. Thankfully, you can use PowerShell scripts to uninstall software. In the past I have to bypass this limit by creating a scheduled task which is very inconvenient.


Invoke-command įor some reason, Microsoft restricts Windows Update related stuff to run directly in a remote Powershell session. Wusa windows10.0-kb4577586-圆4.msu /quiet /norestartīut if you want to run the command on a remote machine via Powershell Remoting. To install an MSU patch on a local machine is as simple as the command below.
