Hi All,
I try create manual update script to install .msu files for multiple Windows ver.
I run this from usb with .bat file, script exit with out any error but nothing installed
Please, help
Thanks.
With the [cmdletbinding] at the top of your script and using Write-Verbose instead of Write-Host it does not output unnecessary messages until you run it with the parameter -Verbose. If you tested the script successfully of course you can remove the parameter -Confirm from the Restart-Computer command.
Regardless of that … are you really still working with WIndows 10 1507, 1511 or 1607?? The support for those already ended years ago. You should not run those Windows versions anymore in any production environment!!!
Thank you for your help
Look like all working correct, BUT nothing installed
This old systems just for the test, i also try update 1909 with latest .msu, script finish no errors but i not see new KB installed
I wrote a script a while back to do pretty much what you are doing. I chose a slightly different approach as my script was designed to install ANY updates in a specific folder be they .EXE, .CAB or .MSU. The only thing I can see that I did differently was defined the full path to WUSA.exe. Have you tried that?
Hi tonyd,
Thank you for your exemple,
Olaf script and your working perfect
it was my mistake, i downloaded comulative updates but tottaly forget download stack updates
but now look like all working perfect , but script stop in one point and in EventLog i see this message:
“A reboot is necessary before package KB5009545 can be changed to the Installed state.”
How i can continue process and reboot in the end when all .msu installed
also,
Do you mind to share your code how to install mix files( .EXE, .CAB or .MSU)
Thanks