Solved Issues removing (ACCESS DENIED) "Windows.old" after a refresh with install media due to "SCF error & DISM.exe" unable to correct

403Phaze

Member
Member
Messages
153
Hey, Having an issue with removing the window's old file. it contains a "winSxS" that was causing issues with my old attempt at repairing

I have tried everything from Disc Cleanup -> RD /S /Q %SystemDrive%\windows.old -> I even attempted to Robocopy the file with no lucky, not too sure what else to try

any suggestions? thanks
C:\>takeown /F "C:\Windows.old" /R /D Y

SUCCESS: The file (or folder): "C:\Windows.old" now owned by user "OWNER\Dallas"
.

INFO: The current logged on user does not have ownership privileges on
the file (or folder): "C:\Windows.old\Windows".

C:\>RD /S /Q %SystemDrive%\windows.old
C:\windows.old\Windows\WinSxS\AMDB60~1.198\diagtrack.dll - Access is denied.
C:\windows.old\Windows\WinSxS\AMDB60~1.198 - Access is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-convert-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-environment-l1-1-0.dll
- Access is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-filesystem-l1-1-0.dll
- Access is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-heap-l1-1-0.dll - Acce
ss is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-locale-l1-1-0.dll - Ac
cess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-math-l1-1-0.dll - Acce
ss is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-private-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-runtime-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-stdio-l1-1-0.dll - Acc
ess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-string-l1-1-0.dll - Ac
cess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-time-l1-1-0.dll - Acce
ss is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-utility-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\AMBBE7~1.193 - Access is denied.
C:\windows.old\Windows\WinSxS\AMCE43~1.193\ucrtbase.dll - Access is denied.
C:\windows.old\Windows\WinSxS\AMCE43~1.193 - Access is denied.
C:\windows.old\Windows\WinSxS\X8D29F~1.176\atlthunk.dll - Access is denied.
C:\windows.old\Windows\WinSxS\X8D29F~1.176 - Access is denied.
C:\windows.old\Windows\WinSxS\X82BFE~1.178\atlthunk.dll - Access is denied.
C:\windows.old\Windows\WinSxS\X82BFE~1.178 - Access is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-convert-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-environment-l1-1-0.dll
- Access is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-filesystem-l1-1-0.dll
- Access is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-heap-l1-1-0.dll - Acce
ss is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-locale-l1-1-0.dll - Ac
cess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-math-l1-1-0.dll - Acce
ss is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-private-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-runtime-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-stdio-l1-1-0.dll - Acc
ess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-string-l1-1-0.dll - Ac
cess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-time-l1-1-0.dll - Acce
ss is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-utility-l1-1-0.dll - A
ccess is denied.
C:\windows.old\Windows\WinSxS\X8C173~1.193 - Access is denied.
C:\windows.old\Windows\WinSxS\X81EE6~1.193\ucrtbase.dll - Access is denied.
C:\windows.old\Windows\WinSxS\X81EE6~1.193 - Access is denied.
C:\windows.old\Windows\WinSxS - Access is denied.

C:\>takeown /F "%SystemDrive%\Windows.old" /R /A /D Y
ERROR: The current logged on user does not have administrative privileges.

C:\>icacls "%SystemDrive%\Windows.old" /grant Administrators:F /T /C
processed file: C:\Windows.old
processed file: C:\Windows.old\Windows
processed file: C:\Windows.old\Windows\WinSxS
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..ed-tele
metry-client_31bf3856ad364e35_6.3.9600.19810_none_90f8c344daaeba15
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-ucrt_31bf3
856ad364e35_6.3.9600.19349_none_9caf921bed524bce
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-atlthunk_31b
f3856ad364e35_6.3.9600.17672_none_228f0f17ecb12892
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-atlthunk_31b
f3856ad364e35_6.3.9600.17898_none_227f74c7ecbbf2cc
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-ucrt_31bf385
6ad364e35_6.3.9600.19349_none_4090f69834f4da98
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..ed-tele
metry-client_31bf3856ad364e35_6.3.9600.19810_none_90f8c344daaeba15\diagtrack.dll

processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-convert-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-environment-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-filesystem-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-heap-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-locale-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-math-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-private-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-runtime-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-stdio-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-string-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-time-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-u..lcrt-ap
ifwd-winblue_31bf3856ad364e35_6.3.9600.19349_none_b150125afd25b57f\api-ms-win-cr
t-utility-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\amd64_microsoft-windows-ucrt_31bf3
856ad364e35_6.3.9600.19349_none_9caf921bed524bce\ucrtbase.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-atlthunk_31b
f3856ad364e35_6.3.9600.17672_none_228f0f17ecb12892\atlthunk.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-atlthunk_31b
f3856ad364e35_6.3.9600.17898_none_227f74c7ecbbf2cc\atlthunk.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
convert-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
environment-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
filesystem-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
heap-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
locale-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
math-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
private-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
runtime-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
stdio-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
string-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
time-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-u..lcrt-apif
wd-winblue_31bf3856ad364e35_6.3.9600.19349_none_553176d744c84449\api-ms-win-crt-
utility-l1-1-0.dll
processed file: C:\Windows.old\Windows\WinSxS\x86_microsoft-windows-ucrt_31bf385
6ad364e35_6.3.9600.19349_none_4090f69834f4da98\ucrtbase.dll
Successfully processed 39 files; Failed processing 0 files

C:\>rd /s /q "%SystemDrive%\Windows.old"
C:\Windows.old\Windows\WinSxS\AMDB60~1.198\diagtrack.dll - Access is denied.
C:\Windows.old\Windows\WinSxS\AMDB60~1.198 - Access is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-convert-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-environment-l1-1-0.dll
- Access is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-filesystem-l1-1-0.dll
- Access is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-heap-l1-1-0.dll - Acce
ss is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-locale-l1-1-0.dll - Ac
cess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-math-l1-1-0.dll - Acce
ss is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-private-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-runtime-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-stdio-l1-1-0.dll - Acc
ess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-string-l1-1-0.dll - Ac
cess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-time-l1-1-0.dll - Acce
ss is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193\api-ms-win-crt-utility-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\AMBBE7~1.193 - Access is denied.
C:\Windows.old\Windows\WinSxS\AMCE43~1.193\ucrtbase.dll - Access is denied.
C:\Windows.old\Windows\WinSxS\AMCE43~1.193 - Access is denied.
C:\Windows.old\Windows\WinSxS\X8D29F~1.176\atlthunk.dll - Access is denied.
C:\Windows.old\Windows\WinSxS\X8D29F~1.176 - Access is denied.
C:\Windows.old\Windows\WinSxS\X82BFE~1.178\atlthunk.dll - Access is denied.
C:\Windows.old\Windows\WinSxS\X82BFE~1.178 - Access is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-convert-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-environment-l1-1-0.dll
- Access is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-filesystem-l1-1-0.dll
- Access is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-heap-l1-1-0.dll - Acce
ss is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-locale-l1-1-0.dll - Ac
cess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-math-l1-1-0.dll - Acce
ss is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-private-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-runtime-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-stdio-l1-1-0.dll - Acc
ess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-string-l1-1-0.dll - Ac
cess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-time-l1-1-0.dll - Acce
ss is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193\api-ms-win-crt-utility-l1-1-0.dll - A
ccess is denied.
C:\Windows.old\Windows\WinSxS\X8C173~1.193 - Access is denied.
C:\Windows.old\Windows\WinSxS\X81EE6~1.193\ucrtbase.dll - Access is denied.
C:\Windows.old\Windows\WinSxS\X81EE6~1.193 - Access is denied.
C:\Windows.old\Windows\WinSxS - Access is denied.

C:\>
 

My Computer

System One

  • OS
    8
    Computer type
    Laptop
    Memory
    8192MB RAM
    Graphics Card(s)
    AMD Radeon HD 8650G + 8750M Dual Graphics
    Hard Drives
    1TB HDD
    Keyboard
    Logitech
    Mouse
    Logitech
    Browser
    Google Chrome
    Antivirus
    Avasti
The reason is those files are still being accessed by the running OS - thus the easiest way to removed them is when to OS is offline - thus I would boot into WinPE and delete the folder - then reboot into the OS...
 

My Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
The reason is those files are still being accessed by the running OS - thus the easiest way to removed them is when to OS is offline - thus I would boot into WinPE and delete the folder - then reboot into the OS...
that worked amazingly! thanks so much
 

My Computer

System One

  • OS
    8
    Computer type
    Laptop
    Memory
    8192MB RAM
    Graphics Card(s)
    AMD Radeon HD 8650G + 8750M Dual Graphics
    Hard Drives
    1TB HDD
    Keyboard
    Logitech
    Mouse
    Logitech
    Browser
    Google Chrome
    Antivirus
    Avasti
The reason is those files are still being accessed by the running OS - thus the easiest way to removed them is when to OS is offline - thus I would boot into WinPE and delete the folder - then reboot into the OS...
Exactly. I recently did that phenomenal feature only found in Windows 8 of CustomRefresh and after reviewing the .old folder of system files found the new refreshed system seeming still recognizing it somehow. It became really apparent when doing a Defrag with the great UltimateDefrag 6. It was choking on that folder. Rebooted with a Linux UFD and pulled it right out.

The WinPE as well does the same as mentioned and evident of the results.
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    Acer
Back
Top