Windows Server

Remove Windows.old After Upgrade

Posted on Updated on

There are several ways to remove the Windows.old file after upgrade. In a Server scenario, you don’t want to add the feature for “Desktop Experience” that will consume memory.

As a Workaround for this, you can use Windows Console as Administrator


Now run the the bellow commands:

Step 1

This step is a long run operation, so you will have to wait until all files and folders take ownership for Administrator

takeown /F c:\Windows.old\* /R /A /D Y

Step 2

This step will grant all permissions to Administrator

cacls c:\Windows.old\*.* /T /grant administrators:F

Step 3

This step will remove finally the Windows.old directory

rmdir /S /Q c:\Windows.old

Good Luck