

BAT extension to create a working batch script. Copy these commands into a file saved with a. The last removes the entire Windows.old directory. The first command takes ownership of the Windows.old folder and contents. I’ve come up with a couple of solutions for deleting Windows.old folders remotely, but the one that’s proven easiest is to use a batch script that contains three short CMDs: TAKEOWN /F %SystemDrive%\Windows.old /A /R /D Y ICACLS %SystemDrive%\Windows.old /T /grant :r Administrators:F RD /S /Q %SystemDrive%\Windows.old Microsoft’s supported method is to use Windows’ Disk Cleanup tool to delete “previous windows installations”, but they do not provide a straightforward way to do this remotely or on a large scale. Therefore there are other methods for deleting this folder. If you attempt to delete Windows.old folder through regular methods, you will receive an error: Windows does automatically delete the folder 30 days after the upgrade takes place, but because the folder is so large it can be beneficial to delete it before then. This folder can be quite large, even taking up 20+ GB of space. In the case of the update being reverted, Windows will resort back to the data in Windows.old. This folder contains a backup of old data prior to the upgrade, including program files, Windows files, and AppData. Once an in-place upgrade of Windows is performed on a machine, a Windows.old folder will be created on the root of the OS drive. Successfully Tested On: Windows 8 Enterprise, Windows 8.1 Enterprise, Windows 10 Enterprise versions 1507 - 1809, Windows 10 Long-Term Servicing Branch (LTSB) versions 1507 & 1607, Windows 10 Long-Term Servicing Channel (LTSC) version 1809
