• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to delete windows.old folder (laptop with TPM) [Solved]

Status
Not open for further replies.
Joined
Jan 5, 2006
Messages
18,584 (2.63/day)
System Name AlderLake
Processor Intel i7 12700K P-Cores @ 5Ghz
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-U12A 2 fans + Thermal Grizzly Kryonaut Extreme + 5 case fans
Memory 32GB DDR5 Corsair Dominator Platinum RGB 6000MT/s CL36
Video Card(s) MSI RTX 2070 Super Gaming X Trio
Storage Samsung 980 Pro 1TB + 970 Evo 500GB + 850 Pro 512GB + 860 Evo 1TB x2
Display(s) 23.8" Dell S2417DG 165Hz G-Sync 1440p
Case Be quiet! Silent Base 600 - Window
Audio Device(s) Panasonic SA-PMX94 / Realtek onboard + B&O speaker system / Harman Kardon Go + Play / Logitech G533
Power Supply Seasonic Focus Plus Gold 750W
Mouse Logitech MX Anywhere 2 Laser wireless
Keyboard RAPOO E9270P Black 5GHz wireless
Software Windows 11
Benchmark Scores Cinebench R23 (Single Core) 1936 @ stock Cinebench R23 (Multi Core) 23006 @ stock
As the title says.

Capture.PNG
 
Use disk cleanup built into windows but make sure you click the tab that says "clean up system files" first.

Then you just tick all the boxes and it should remove that .old folder
 
Use disk cleanup built into windows but make sure you click the tab that says "clean up system files" first.

Then you just tick all the boxes and it should remove that .old folder

I tried that already, it didn't remove it completely for probably a TPM reason...:banghead:
 
I tried that already, it didn't remove it completely for probably a TPM reason...:banghead:
Can't you just suspend it for an hour or so?
 
Isnt it time locked for 30 days anyway?
Meaning you can only delete it 30 days after it was created.
 
Can't you just suspend it for an hour or so?

Well I did a reset on this new laptop and it prompted me if I wanted to clear the TPM, which I did with f1, after that windows went reinstalling.
I don't know how to "suspend" it.

@gdallsk Edit: Ok did some searching and found this:
https://technet.microsoft.com/en-us/library/cc754524(v=ws.11).aspx

The thing is I can't find:

"Open the TPM Management (tpmadmin.msc) snap-in."

Where can I find this?

Isnt it time locked for 30 days anyway?
Meaning you can only delete it 30 days after it was created.

I can't delete it now anyways so would be nice if that's the case...
 
Last edited:
Well I did a reset on this new laptop and it prompted me if I wanted to clear the TPM, which I did with f1, after that windows went reinstalling.
I don't know how to "suspend" it.
If you have bitlocker on, turn it off for the time being, and then go into the BIOS there you will be able to disable your TPM module.
 
If you have bitlocker on, turn it off for the time being, and then go into the BIOS there you will be able to disable your TPM module.

I don't seem to have bitlocker on this laptop.
Anyways, I guess I'll leave it as is, I'm afraid I can't load windows anymore when messing with TPM...:ohwell:
It's just a 600MB windows.old files.

Thanks anyways.
 
I don't seem to have bitlocker on this laptop.
Anyways, I guess I'll leave it as is, I'm afraid I can't load windows anymore when messing with TPM...:ohwell:
It's just a 600MB windows.old files.

Thanks anyways.
Try unlocker, I believe it works even with win10.
 
im never too great with these storage related issues, but when i get into one of these "system locked" scenarios, i usually mount the drive in question as an external in a dock, using another PC, i excise the file/folder in question. not sure as to weather or not thats possible here, but it usually works for situations i get myself into.
 
im never too great with these storage related issues, but when i get into one of these "system locked" scenarios, i usually mount the drive in question as an external in a dock, using another PC, i excise the file/folder in question. not sure as to weather or not thats possible here, but it usually works for situations i get myself into.

Yeah I would do such as well usually but in this case it's an M.2 SSD and I think because of the TPM the files would be encrypted or so or you'll get no access I think.

But as I said I'll just leave it as is then, it's a 256GB M.2 SSD and the windows.old leftovers that I can't delete are just 600MB.

@CAPSLOCKSTUCK that 30 days is with a windows 10 upgrade, I think you mean that. This new laptop came with windows 10.
 
Last edited:
Hold shift and click on RESTART button in Start menu. Go to Troubleshooting menu and use Command line prompt (I think, speaking from head).

Use:
rd windows.old /s

Confirm and it'll delete it. Boot back into Windows and that's it.

All other methods are hit and miss and often refuse to work (like taking over the folder ownership).
 
make a .reg file using this, right click folder, then take ownership, delete

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
 
Last edited:
Interesting I just hit delete and it does the trick. It sometimes asks for administrative privileges but I just click ok so it does delete it.
 
Interesting I just hit delete and it does the trick. It sometimes asks for administrative privileges but I just click ok so it does delete it.

It's because of the TPM (Trusted Platform Module) on this laptop.
"Trusted Platform Module (TPM) is an international standard for a secure cryptoprocessor,
which is a dedicated microcontroller designed to secure hardware by integrating cryptographic keys into devices.
TPM's technical specification was written by a computer industry consortium called Trusted Computing Group (TCG
)"
 
It's because of the TPM (Trusted Platform Module) on this laptop.
"Trusted Platform Module (TPM) is an international standard for a secure cryptoprocessor,
which is a dedicated microcontroller designed to secure hardware by integrating cryptographic keys into devices.
TPM's technical specification was written by a computer industry consortium called Trusted Computing Group (TCG
)"
TPM is on half of decent motherboards as well, it does nothing until you set it up.
 
Ok, got the windows.old folder removed today, this after a large update about a week ago, it seemed to replaced the 600mb windows.old folder with new files since the windows.old folder was about 19GB now...
But was able to remove it completely now with the windows disk cleanup. :)
 
Status
Not open for further replies.
Back
Top