(imported topic written by Niall.Fraser)
We have had problems caused by the installation of this patch KB2661254 so I was asked to remove it. I have tried to use the rollback wizard to create a task to uninstall this patch however, I have not been able to get it to successfully uninstall a single instance. The action always fails - here is part of the output
Completed elseif {name of operating system = “WinVista” OR name of operating system = “Win2008”}
Failed continue if {exists first matches (regex “^KB\d+$”) of (“2661254” as uppercase)}
if {x64 of operating system}
wait {pathname of windows folder}\sysnative\pkgmgr.exe /quiet /norestart /up:{(if (size of it = 1) then (element of it) else (if (exists element whose (it contains “Package_for_”) of it) then (element whose (it contains “Package_for_”) of it) else (“Error”)) ) of (set of first matches (regex “Package.*KB\d+~\S+~\S+~~\d+.\d+.\d+.\d+”) of names whose (it contains “2661254” as uppercase) of keys of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages” of native registry)}
else
wait {pathname of system folder}\pkgmgr.exe /quiet /norestart /up:{(if (size of it = 1) then (element of it) else (if (exists element whose (it contains “Package_for_”) of it) then (element whose (it contains “Package_for_”) of it) else (“Error”)) ) of (set of first matches (regex “Package.*KB\d+~\S+~\S+~~\d+.\d+.\d+.\d+”) of names whose (it contains “2661254” as uppercase) of keys of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages” of native registry)}
endif
action requires restart
elseif {name of operating system = “Win7” OR name of operating system = “Win2008R2”}
continue if {exists first matches (regex “^\d+$”) of “61254”}
if {x64 of operating system}
wait {pathname of windows folder}\sysnative\wusa.exe /uninstall /kb:61254 /quiet /norestart
else
wait {pathname of system folder}\wusa.exe /uninstall /kb:61254 /quiet /norestart
endif
action requires restart
endif
Any ideas why this fails - manually removing the patch in add/remove programs works fine - but I need to remove it from 225 servers so I’d rather do it automatically.
thanks
Niall