Windows.old folder

Also known as: Windows.old

On this page 7

The Windows.old folder is a directory that Windows creates at the root of the system drive, usually C:\Windows.old, to preserve the previous installation after an in-place upgrade, a feature update or certain reset operations. It holds the old system files, program files and user profiles so that the computer can roll back to the earlier version and so that users can recover files that did not migrate.

In Windows storage & file systems, Windows.old is notable because it can occupy tens of gigabytes, has unusual permissions and is removed automatically after a fixed period. Understanding it helps administrators balance recovery options against free disk space.

How Windows creates the Windows.old folder

During an upgrade, Windows Setup builds the new operating system in a separate location and then moves the previous installation into Windows.old instead of deleting it. Because this is a move on the same NTFS volume, it is fast and does not require copying every byte, although the drive still needs enough space for both systems during the operation.

The folder mirrors the old layout, with subfolders such as Windows, Program Files, ProgramData and Users. The rollback metadata that Setup needs is stored alongside it in hidden folders such as $Windows.~BT, so deleting Windows.old alone already breaks the go-back option.

The following table lists the operations that typically create the folder.

OperationCreates Windows.oldRollback possible
Feature updateYesYes, within the rollback window
Upgrade from Windows 10 to 11YesYes, within the rollback window
In-place repair installYesNo formal go-back option
Custom install without formattingYesNo, only manual file recovery
Monthly cumulative updateNoUninstalled separately instead
Clean install with formattingNoNo
Operations that create Windows.old

Rollback window and automatic cleanup

Windows keeps the folder for a default period of 10 days after an upgrade, after which a scheduled maintenance task deletes it. During this period, Settings > System > Recovery > Go back restores the previous version while keeping personal files.

Administrators can change the period with the DISM command DISM /Online /Set-OSUninstallWindow /Value:30, which accepts values from 2 to 60 days. DISM /Online /Get-OSUninstallWindow shows the current setting. The value must be set before the window expires, because the cleanup cannot be undone.

FactorEffectRecommendation
Default window10 days of rollbackSufficient for most home users
Extended windowUp to 60 daysUseful for staged business pilots
Storage SenseMay delete the folder earlierReview its settings during pilots
Disk CleanupDeletes the folder on demandRun only after validating the upgrade
New user accountsCan block the go-back optionAvoid account changes before testing
Factors that affect the rollback window

Recovering files from Windows.old

The folder is also a last-resort source for lost data. If documents, desktop items or application settings did not transfer to the new installation, they usually remain under C:\Windows.old\Users\<username>.

  1. Open File Explorer and browse to Windows.old\Users on the system drive.
  2. Locate the old profile folder and the needed subfolder, such as Documents.
  3. Copy, not move, the files into the current profile.
  4. Verify the files open correctly before the cleanup period ends.

Program files in Windows.old cannot simply be copied back to work again, because applications depend on registry entries and services from the old system. Reinstalling the application is the reliable path, while the old folder serves only for data and configuration files.

Deleting Windows.old safely

Windows.old cannot be removed like an ordinary folder, because its contents are owned by TrustedInstaller and protected by restrictive access control lists. The supported methods use Windows cleanup tools, which also remove the rollback metadata consistently.

MethodWhere to find itNotes
Storage SenseSettings > System > Storage > Temporary filesSelect Previous Windows installation(s)
Disk Cleanupcleanmgr.exe, Clean up system filesSame option under its classic name
Automatic taskScheduled after the rollback windowNo user action required
Manual deletiontakeown and icacls commandsNot recommended, error-prone
Ways to remove Windows.old

Forcing deletion with takeown and icacls works but can leave orphaned rollback folders and offers no benefit over the built-in tools. The key rule is simple: delete Windows.old only after confirming that the new version runs correctly and that no user data is missing.

Windows.old compared with other recovery mechanisms

Windows.old is not a backup. It is a temporary byproduct of an upgrade and disappears on schedule, unlike File History, System Restore or a full image backup.

It also differs from the WinSxS folder, which stores component versions for servicing the current installation, and from Volume Shadow Copy Service snapshots, which capture point-in-time states of a volume. Relying on Windows.old as the only safety net for an upgrade is a common and costly mistake; a verified backup taken before the upgrade remains essential.

The comparison below shows how Windows.old fits among the recovery features that Windows provides.

FeatureWhat it preservesLifetime
Windows.oldEntire previous installationRollback window, 10 days by default
System RestoreSystem files, registry, driversUntil restore points age out
File HistoryVersions of user filesConfigurable, often months
System image backupComplete volume contentsAs long as the media is kept
Volume shadow copiesPoint-in-time volume snapshotsLimited by reserved space
Windows.old and related recovery features

On systems with little free space, such as tablets with 64 GB of storage, Setup may need an external drive to complete an upgrade and still create Windows.old. In those cases, checking capacity beforehand avoids failed feature updates caused by insufficient space.

Put simply

When Windows upgrades itself, it does not throw the old version away immediately. It packs the old system into a box called Windows.old and keeps it in a corner of the drive for about ten days.

If the new version causes trouble, Windows can unpack the box and return to how things were. If everything works, the box is thrown out to free up space. It is a temporary safety net, not a long-term backup.

In practice

A small design studio upgrades eight workstations from Windows 10 to Windows 11. Before starting, the IT contractor runs DISM /Online /Set-OSUninstallWindow /Value:30 on each machine to extend the rollback window to 30 days, because the studio’s color calibration software has not yet been certified.

After the upgrade, each Windows.old folder occupies about 28 GB. On day 12, one designer discovers that a plug-in folder did not migrate and recovers it from Windows.old\Users. On day 20, the calibration tool proves incompatible on two machines, which are rolled back with Go back in under an hour. Once the vendor ships a fix, the contractor upgrades them again and removes Windows.old with Storage Sense, reclaiming the disk space on all eight workstations.