Installation and Upgrade See and Set Number of Days can Go Back to Previous Version of Windows in Windows 11


  • Staff
Go_back_banner.png

Windows 11 gives you the ability to uninstall and go back (roll back) to a previous version of Windows.

When you upgrade to Windows 11 from Windows 10, repair install Windows 11, or update to a new version of Windows 11 (ex: Windows Update), a copy of the previous installation is saved to the Windows.old folder in the root directory of the Windows 11 drive as a backup. This backup will allow you to be able to go back to the previous Windows for up to a 10 days after upgrading to Windows 11 if you should want to.

After the set number of days you can go back to the previous version of Windows has expired, the previous version will automatically get deleted.

Going back to the previous Windows will keep your personal files, but it'll remove apps and drivers installed after the upgrade, as well as any changes you made to settings.

See also:

This tutorial will show you how to see and set the number of days after an upgrade you are still able to go back to a previous version of Windows in Windows 11.


You must be signed in as an administrator to see and set the number of days after an upgrade you are still able to go back to a previous version of Windows.



Contents

  • Option One: See Current Number of Days after an Upgrade You Can Go back to Previous Version of Windows
  • Option Two: Set Number of Days after an Upgrade You Can Go back to Previous Version of Windows




Option One

See Current Number of Days after an Upgrade You Can Go back to Previous Version of Windows


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below into Windows Terminal (Admin), and press Enter. (see screenshots below)

DISM /Online /Get-OSUninstallWindow

3 You will now see the number of days (ex: "10") currently set after an upgrade to be able to go back to a previous version of Windows.

If DISM reports the Error 1168, Element not found error message, it indicates the previous version has been deleted, and there's currently not a previous version to go back to.


4 You can now close Windows Terminal (Admin) if you like.

error_1168_element_not_found.png

Get_OSUninstallWindow.png





Option Two

Set Number of Days after an Upgrade You Can Go back to Previous Version of Windows


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Type the command below into Windows Terminal (Admin), and press Enter. (see screenshot below)

DISM /Online /Set-OSUninstallWindow /Value:<days>

Substitute <days> in the command above with the actual number (2 to 60) of days you want.

The default is 10 days.

For example: DISM /Online /Set-OSUninstallWindow /Value:60


3 You can now close Windows Terminal (Admin) if you like.

Set_OSUninstallWindow.png



That's it,
Shawn Brink


 

Attachments

  • Go_back.png
    Go_back.png
    4.2 KB · Views: 41
Last edited:

zbook

Well-known member
Power User
VIP
Local time
1:33 PM
Posts
935
OS
Windows 10
Please consider adding (rollback or roll back) in the title so that it is easier to find on google.
 

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

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
1:33 PM
Posts
3,764
OS
Windows 11 Pro for Workstations
Please consider adding (rollback or roll back) in the title so that it is easier to find on google.

Hello mate, :)

I'm afraid there's not enough room left to add to the title. We need "Go back" since that's the official wording below, but I'll add it in the info at the top to help though.

1641831426714.png
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

zbook

Well-known member
Power User
VIP
Local time
1:33 PM
Posts
935
OS
Windows 10
Thx.
 

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

monkeyballs23

New member
Local time
8:33 PM
Posts
2
OS
Windows 11/Windows 10
(fixed by running in the command prompt)
I need help.
Error: 740

Elevated permissions are required to run DISM.
Use an elevated command prompt to complete these tasks.
PS C:\Users\tbbju>
 
Last edited:

My Computer

System One

  • OS
    Windows 11/Windows 10

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
1:33 PM
Posts
3,764
OS
Windows 11 Pro for Workstations
I need help.
Error: 740

Elevated permissions are required to run DISM.
Use an elevated command prompt to complete these tasks.
PS C:\Users\tbbju>
Hello, :)

Just to verify, did you open Windows Terminal (Admin) like below to run the command elevated?

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

monkeyballs23

New member
Local time
8:33 PM
Posts
2
OS
Windows 11/Windows 10
Hello, :)

Just to verify, did you open Windows Terminal (Admin) like below to run the command elevated?

fixed, thanks.
 

My Computer

System One

  • OS
    Windows 11/Windows 10

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
1:33 PM
Posts
3,764
OS
Windows 11 Pro for Workstations

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

quack101

Member
Local time
7:33 PM
Posts
25
OS
Windows 11 Home 21H2
By the way, you can also run PowerShell as admin and run the same commands.
 

My Computer

System One

  • OS
    Windows 11 Home 21H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook 15, model K513E
    CPU
    Intel Core i5 11th Generation (1135G7) at 2.4GHz
    Motherboard
    Unknown
    Memory
    16GB DDR4
    Graphics Card(s)
    Intel Iris Xe (intergrated), NVIDIA GeForce MX350 (dedicated, 2GB VRAM)
    Sound Card
    Unknown
    Monitor(s) Displays
    1080p ASUS OLED display, 15.6 inches, pixel shift enabled via MyASUS app
    Screen Resolution
    1920 x 1080
    Hard Drives
    512GB NVMe SSD (encrypted with TPM 2.0)
    PSU
    Unknown
    Case
    Laptop body - aluminium + plastic
    Cooling
    Unknown
    Keyboard
    Non-backlit, with numpad
    Mouse
    Microsoft Wireless Mobile Mouse 1000, built-in trackpad
    Internet Speed
    (From speedtest.net, recommended server, WiFi 6) 383.36 Mbps download, 35.80 Mbps upload
    Browser
    Microsoft Edge (Chromium)
    Antivirus
    Windows Security/Defender
    Other Info
    Win11 compatible, although update not yet offered through Windows Update (Win11 install assistant was used).

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
1:33 PM
Posts
3,764
OS
Windows 11 Pro for Workstations
Neither of the scans seemed to detect anything unusual, although I'm pretty sure I should restart for the DISM thing to take full effect.

Hello, :)

A restart is not required to apply your changes for the number of days, but it won't hurt anything if you do.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

quack101

Member
Local time
7:33 PM
Posts
25
OS
Windows 11 Home 21H2
Hello, :)

A restart is not required to apply your changes for the number of days, but it won't hurt anything if you do.
Sorry, that was the wrong thread. You saw the post before I deleted it.
 

My Computer

System One

  • OS
    Windows 11 Home 21H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook 15, model K513E
    CPU
    Intel Core i5 11th Generation (1135G7) at 2.4GHz
    Motherboard
    Unknown
    Memory
    16GB DDR4
    Graphics Card(s)
    Intel Iris Xe (intergrated), NVIDIA GeForce MX350 (dedicated, 2GB VRAM)
    Sound Card
    Unknown
    Monitor(s) Displays
    1080p ASUS OLED display, 15.6 inches, pixel shift enabled via MyASUS app
    Screen Resolution
    1920 x 1080
    Hard Drives
    512GB NVMe SSD (encrypted with TPM 2.0)
    PSU
    Unknown
    Case
    Laptop body - aluminium + plastic
    Cooling
    Unknown
    Keyboard
    Non-backlit, with numpad
    Mouse
    Microsoft Wireless Mobile Mouse 1000, built-in trackpad
    Internet Speed
    (From speedtest.net, recommended server, WiFi 6) 383.36 Mbps download, 35.80 Mbps upload
    Browser
    Microsoft Edge (Chromium)
    Antivirus
    Windows Security/Defender
    Other Info
    Win11 compatible, although update not yet offered through Windows Update (Win11 install assistant was used).
Top Bottom