Windows 10: W10 Anniversary Update - delete windows.old directory? Solved

Page 2 of 2 FirstFirst 12
  1.    06 Aug 2016 #11

    If I were you I would not do anything to the windows old folder. I had one pc that when I removed it, the pc then completely refused to boot.
      My ComputerSystem Spec

  2.    06 Aug 2016 #12

    Mystere,
    That is not what was happening to me! I rebooted many times and still could not delete windows.old. Windows kept saying that one of the files in windows.old was in use and it WAS according to the registry entry pointing to windows.old for one of the Intel VGA drivers. Like I said above, I only had the problem on machines that used the Intel on chip video.

    davefaz,
    That's probably why you had an issue deleting windows.old. The update left the registry with a key driver or whatever pointing to the windows.old folder.
    Last edited by Ken429; 07 Aug 2016 at 04:38.
      My ComputerSystem Spec

  3.    23 Oct 2016 #13

    Make a backup first...
    Then try this script.
    Copy it and save it into a notepad file.
    Rename it to whatever_you_like.bat
    Run it and press yes.

    It will remove the windows.old folder.

    Tell me if this worked ...

    Code:
    @echo off
    
    :: BatchGotAdmin
    :-------------------------------------
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
        echo Requesting administrative privileges...
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        exit /B
    
    :gotAdmin
        if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
        pushd "%CD%"
        CD /D "%~dp0"
    :--------------------------------------
    
    rem pause
    
    takeown /f "C:\Windows.old" /r
    
    icacls "C:\Windows.old" /reset /T
    
    attrib -r -a -s -h C:\Windows.old /S /D
    
    RD /S /Q %SystemDrive%\windows.old
      My ComputerSystem Spec

  4.    19 Nov 2016 #14

    gvp9000 said: View Post
    Make a backup first...
    Then try this script.
    Copy it and save it into a notepad file.
    Rename it to whatever_you_like.bat
    Run it and press yes.

    It will remove the windows.old folder.

    Tell me if this worked ...

    Code:
    @echo off
    
    :: BatchGotAdmin
    :-------------------------------------
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
        echo Requesting administrative privileges...
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        exit /B
    
    :gotAdmin
        if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
        pushd "%CD%"
        CD /D "%~dp0"
    :--------------------------------------
    
    rem pause
    
    takeown /f "C:\Windows.old" /r
    
    icacls "C:\Windows.old" /reset /T
    
    attrib -r -a -s -h C:\Windows.old /S /D
    
    RD /S /Q %SystemDrive%\windows.old
    I had the same problem as the OP did, and your script worked like a charm. I had to run it twice to complete the entire process. I did it with Build 14971.
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
Solved Windows 10 Anniversary Update in Installation and Upgrade
I have read other threads on this subject and have not found the solution to my problem in them. The Windows 10 Anniversary Upgrade Assistant Icon appeared on my desktop. I began the process to update and received the error, SOMETHING WENT WRONG...
I am downloading the update manually. Have others had the same issue with windows update not showing the update? I'm not sure my WU is working because of this.
Who will it be? With no glitches. What time? Where are you located? What do you really notice improved over old 10? If you are a paying customer, did you get your monies worth? Are loading times (software and boot speeds). Add your questions if you...
Source: Windows 10 Anniversary Update SDK Now Available! Windows Store Open for Submissions | Building Apps for Windows
Hi In Windows 10, how do I delete the C:\$Windows.~BT and C:\Windows.old directory? Thanks Bye
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 16:06.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums