<div dir="ltr"><div>On Windows server editions, Windows has a command line utility (maybe on other editions too) called sconfig.cmd in C:\Windows\System32, which also installs updates. The heavy lifting installing updates is done by the VBS script WUA_SearchDownloadInstall.vbs also in C:\Windows\System32 or a language specific subdirectory.</div><div>This script searches, download and installs updates in the background without any user interaction, It does so by creating aVBS installer object and using its methods. <br></div><div>I use a slightly modified version to install updates via WPKG by running the VBS script with cscript.</div><div><br></div><div>Analyzing this script should give you hints how to uninstall without any user interaction the way microsoft does it.<br></div><div><br></div><div>Good luck</div><div><br></div><div>Bernhard<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 13. Juli 2023 um 13:10 Uhr schrieb Marco Gaiarin <<a href="mailto:gaio@lilliput.linux.it">gaio@lilliput.linux.it</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I need to uninstall KB5028166, via WPKG. I've found thati need to install<br>
'WU powershell addon/modules', via:<br>
<br>
Install-PackageProvider -Name NuGet -Force<br>
Install-Module -Name PSWindowsUpdate -Force<br>
Set-ExecutionPolicy RemoteSigned -Force<br>
Import-Module PSWindowsUpdate<br>
<br>
there's some example on powershell module import? how i can write check<br>
conditions?<br>
<br>
<br>
Then i need to uninstall the KB; but seems that nor:<br>
<br>
wusa /uninstall /kb:5028166 /quiet /norestart<br>
<br>
nether:<br>
Remove-WindowsUpdate -KBArticleID KB5028166 -IgnoreReboot -Confirm:$false<br>
<br>
works. Only:<br>
<br>
wusa /uninstall /kb:5028166<br>
<br>
work, clearly non in silent mode.<br>
<br>
<br>
If someone have some clue, thanks.<br>
<br>
-- <br>
Risulterebbe che i due ladroni crocefissi accanto al Signore fossero<br>
socialisti: infatti erano ladri e occupavano due posti su tre.<br>
(Anonimo)<br>
<br>
<br>
---------------------------------<br>
wpkg-users mailing list archives >> <a href="http://lists.wpkg.org/pipermail/wpkg-users/" rel="noreferrer" target="_blank">http://lists.wpkg.org/pipermail/wpkg-users/</a><br>
_______________________________________________<br>
wpkg-users mailing list<br>
<a href="mailto:wpkg-users@lists.wpkg.org" target="_blank">wpkg-users@lists.wpkg.org</a><br>
<a href="https://lists.wpkg.org/mailman/listinfo/wpkg-users" rel="noreferrer" target="_blank">https://lists.wpkg.org/mailman/listinfo/wpkg-users</a><br>
</blockquote></div>