Fix for windows update issue on XP in case you run into it

15 views
Skip to first unread message

JD Austin

unread,
Jun 27, 2011, 3:43:24 PM6/27/11
to wa...@googlegroups.com
I've had a few offices that have been infected by nasty malware that once you clean them up have an issue installing windows updates.
Updates download but don't install.
I tried all the fixes for windows updates including re-installing it and nothing worked.
The script below works on XP in case you ever run into this; the last secedit line would need to be changed for other versions of windows (http://support.microsoft.com/kb/313222).
Save the text below in a .bat file and run it after installing  subinacl.msi from 
 http://www.microsoft.com/download/en/confirmation.aspx?id=23510 :

REM FIX locked windows updates due on XP to registry issues
REM This requires subinacl.msi installed from:
cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f 
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f 
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f 
subinacl /subdirectories %SystemDrive% /grant=administrators=f 
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f 
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f 
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f 
subinacl /subdirectories %SystemDrive% /grant=system=f 
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
Reply all
Reply to author
Forward
0 new messages