Windows XP | MalwareTeks Blog
MalwareTeks - Home Page
Are You Infected? Are you plagued by pop-ups? Problems with Spyware, Malware?
Are you an Anti-Malware Fighter and would like to contribute?
Dedicated to keeping your PC clean of Scumware, Badware, Spyware, Malware, Viruses and Trojans.


Correct “Access Denied” Error While Installing Windows XP SP3 Release Candidate 2

Saturday, February 23rd, 2008

While installing Windows XP SP3, you receive the following error:

Windows XP Service Pack 3 installation failed.
Access is denied.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Resolution:

1. Backup the Registry

2. If subinacl.exe is not installed, download and install subinacl.exe.

3. Create a file called reset.cmd with Notepad. Copy the text below into the file reset.cmd and run reset.cmd from an account with administrative privileges:

Windows XP Home Edition:

cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
 
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f

Windows XP Professional:

cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
 
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
 
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

4. Run windows update.

Windows XP SP3 should now install.

EDITS:
09 May 2008 - Article changed to reflect the release of Windows XP SP3 RTM
10 May 2008 - Windows Batch script updated to a more comprehensive/complete fix.


Content © 2006-2008 MalwareTeks - Every post is the opinion of the author

Creative Commons License
All works are licensed under a
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.

Bad Behavior has blocked 219 access attempts in the last 7 days.