Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Cannot uninstall kb

$
0
0

Been stuck for several hours trying to uninstall a kb.  From the command prompt, it works fine:

 

cd c:\

then,

C:\Windows\System32\wusa.exe /uninstall /kb:xxxxxxx /quiet /norestart

 

Wusa does its thing, finds the kb, after the wusa process is done restart the pc, and its gone.

 

For the autoit scripts Ive tried:

  1. ShellExecute("wusa.exe" & '/uninstall /kb:xxxxxxx /quiet /norestart')

No luck ^

  1. $wusa = @WindowsDir & "\System32\wusa.exe"
  2. Run($wusa & " /uninstall /kb:xxxxxxx /quiet /norestart")

No luck ^

  1. $cmd = "wusa.exe /uninstall /kb:xxxxxxx /quiet /norestart"
  2. RunWait(@ComSpec & " /c " & $cmd, @WindowsDir & "\System32", @SW_HIDE)

No luck ^

  1. ;FileCopy(@ScriptDir & '\kbuninstall.cmd', "C:\Temp")
  2. ;Sleep(5000)
  3. ;RunWait('C:\Temp\kbuninstall.cmd', '', @sw_hide)

^ Even tried running both .cmd and .bat files locally

  1. $x = RunWait(@ComSpec & " /c C:\Windows\System32\wusa.exe /uninstall /kb:xxxxxxx /quiet /norestart", @SystemDir, @SW_HIDE)
  2. MsgBox(0, "", $x)

No luck on this either, although it does bomb out with error code -2147418113 which appears to be a "catastrophic failure," (lol) similar to this link:  https://social.technet.microsoft.com/Forums/systemcenter/en-US/a218e294-b0e6-4b26-80a9-4eef72476fff/wusaexe-uninstall-and-sccm?forum=configmgrsum

 

Searched up and down, never seen anything like it.  

 


Viewing all articles
Browse latest Browse all 12506

Latest Images

Trending Articles



Latest Images

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