Friday 19 March 2010

Remove any KB with command line in Windows 7

To remove any KB in Windows 7 using a command line has changed from XP

Old Win XP command for removeing silently and force restart was:
%windir%\$NtUninstallKBXXXXXX$\spuninst\spuninst.exe /quiet /norestart

If you run this as part of a Task sequence make sure you select continue on error and add a Reboot to Currently installed OS as a next step as you want the Task sequence to control restarts.


For Windows 7 however it is:
%windir%\system32\wusa.exe /uninstall /kb:XXXXXX /quiet /norestart

If you run this as part of a Task sequence make sure you select continue on error and add a Reboot to Currently installed OS as a next step as you want the Task sequence to control restarts.

2 comments:

  1. Hi, thanks for the article. Can you confirm that WUSA definately can uninstall security patches? Microsoft's security patch documentation suggests that it can't?

    Thanks, Steve

    ReplyDelete
  2. Steve - it definatly works for me in conjuction with the Task Sequence

    ReplyDelete