Windows.old file new install


angeyburger25

New member
Local time
10:49 AM
Posts
4
OS
Windows 11
I have reinstalled windows 11 multiple times from Bootable USB onto my SSD that had the old Windows files on it.

During the install process from the bootable usb menu I used Diskpart to clean the SSD and when I load into windows, I can see a windows.old file with nothing in it.

Is this normal?
 
Windows Build/Version
Windows 11

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Yes. 24H2 & 25H2 perform every clean install as a "Windows upgrade", and create a dummy folder Windows.old. There was nothing inside, but helps Windows complete the install process. You can delete the empty folder afterwards.

Don't ask why Windows isn't smart enough to clean up the folder.
 

My Computer

System One

  • OS
    Windows 7
Yes. 24H2 & 25H2 perform a clean install as an "upgrade", and create a dummy folder Windows.old. There was nothing inside, but helps Windows complete the install process. You can delete the empty folder afterwards.

Don't ask why Windows isn't smart enough to clean up the folder with nothing there.
Thanks for the quick reply!

I do have another question, I re installed windows 11 via bootable USB about 4x using DiskPart Clean to wipe the drive.

Is this the correct way to clean the SSD in future reinstalls if it were needed? My old PC had corrupted drivers, instead of just reinstalling windows I thought I’d treat myself to a new PC.

Thanks
-Joe
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Unless your goal is to securely erase confidential data, then simply using diskpart -> clean, convert gpt is enough to initialize the disk.

Without a valid partition table, NTFS loses track of the previous data. Obviously someone could try running a disk recovery program to recover unerased data, but if all you want to do is to re-install Windows from scratch – it's a good enough.

One way of automating this process is creating an unattended file, which creates a custom disk layout. When the layout is applied, you can specify to erase the disk. This is the same thing as clean / convert gpt, and adding the new partitions. Of course, if you have multiple disks, care has to be taken in case the unattended install misidentifies the drive due a HW re-numbering.
 

My Computer

System One

  • OS
    Windows 7
Unless your goal is to securely erase confidential data, then simply using diskpart -> clean, convert gpt is enough to initialize the disk.

Without a valid partition table, NTFS loses track of the previous data. Obviously someone could try running a disk recovery program to recover unerased data, but if all you want to do is to re-install Windows from scratch – it's a good enough.

One way of automating this process is creating an unattended file, which creates a custom disk layout. When the layout is applied, you can specify to erase the disk. This is the same thing as clean / convert gpt, and adding the new partitions. Of course, if you have multiple disks, care has to be taken in case the unattended install misidentifies the drive due a HW re-numbering.
Thank you for the information mate you’re a legend.

Just before we end this thread my old PC had corrupted Chipset and GPU drivers, being young and naive I never bothered to fix it. I still have this old pc and Im going to give it to my brother for school work and light gaming.

If I diskpart > clean the ssd from bootable USB will it wipe all the old corrupted drivers correct? Just for double assurance :)
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
No. diskpart / clean doesn't delete any drivers, it effectively resets the disk without doing a lengthy format. If you haven't added "bad" drivers to the install image, then you'll get exactly what's the Windows install image on a clean install.

After you've rebuilt the system, make a Windows recovery drive on USB in case your brother doesn't know how to re-install Windows for himself. Or find the right drivers for this PC.
 

My Computer

System One

  • OS
    Windows 7
No. diskpart / clean doesn't delete any drivers, it effectively resets the disk without doing a lengthy format. If you haven't added "bad" drivers to the install image, then you'll get exactly what's the Windows install image on a clean install.

After you've rebuilt the system, make a Windows recovery drive on USB in case your brother doesn't know how to re-install Windows for himself. Or find the right drivers for this PC.
Thank you for your help!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Before a clean install you can manually delete each partition creating an unallocated disk drive.

Alternatively you can run diskpart clean before the clean install.

For most drives the results are the same.





A GPT drive can have as many as 128 partitions.

With many partitions diskpart clean can be substantially quicker than manual deletion.

If there was an unusual error code during clean install then diskpart clean may be better (mbr/gpt or linux).




For windows.old you can wait for the 10 day deletion or manually delete:

 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
    Motherboard
    Product : 190A Version : KBC Version 94.56
    Memory
    16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
    Graphics Card(s)
    NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
    Sound Card
    IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
    Hard Drives
    Model Hitachi HTS727575A9E364
    Antivirus
    Microsoft Defender
    Other Info
    Mobile Workstation
For windows.old you can wait for the 10 day deletion or manually delete:

I use Disk Cleanup, including system files, and it deletes windows old folder.
 

My Computer

System One

  • OS
    windows 11 ,Ubuntu Cinnamon - for tinkering only
    Computer type
    PC/Desktop
    Manufacturer/Model
    No Name - Assembled by a Compute shop in a Strip Mall.
    CPU
    Intel i511400
    Motherboard
    ASUS PRIME B560-PLUS motherboard
    Memory
    16 GB
    Graphics Card(s)
    0
    Sound Card
    0
    Monitor(s) Displays
    25 in BenQ
    Screen Resolution
    1920 x 1080
    Hard Drives
    9 SSDs 4 Nvme, 2 in M.2 slot and 2 in PCIE with adapter + 5 Sata. DVD drive
    PSU
    600w
    Case
    Antec- VSK4000E-U3 Mid Tower
    Internet Speed
    Bell pure fibre optic. 3 GB package. 6E Wireless adapter 750/500
    Browser
    Firefox, Microsoft Edge
    Antivirus
    Defender
1. For a clean install, new Setup client (not the legacy Setup) creates the Windows.old. It can be removed by rmdir, no need to run Disk Cleanup since it's a placeholder folder.

2. For an in-place upgrade where there's an actual Windows folder (with system files) from before, then use Disk Cleanup.
 

My Computer

System One

  • OS
    Windows 7
Back
Top Bottom