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


  • Staff
Go_back_banner.png

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.

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.

Reference:


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


 
Last edited:
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
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
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
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
(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
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
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
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

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
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
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).
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
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
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).
What Dism command, if any, can be used from Windows RE to view the remaining go back days?

Dism /Image:C:\ /Get-OSUninstallWindow
Dism /Image:C:\ /Get-Packages
 

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
What Dism command, if any, can be used from Windows RE to view the remaining go back days?

Dism /Image:C:\ /Get-OSUninstallWindow
Dism /Image:C:\ /Get-Packages
Hey mate, :alien:

I haven't seen a direct command for that yet, but you could use option one below to also see the upgrade history in W11 to see the last date to compare to the current date to know how many days you have left.


... or also option three below:

 

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
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
A thread with failure to upgrade from Windows 10 to Windows 11 was troubleshooted.

The computer for a very short period used Windows 11.

There are Ten Forums and Eleven Forum threads.





There is a failure to boot to run the online commands to check, confirm, or modify the go back time.

By thread posts (days ago) it still is within the 10 day go back period.

Confirmation or modification of the go back if available may be useful keeping track of the time factors.

Maybe this can run using administrative command prompt:

reg query HKEY_LOCAL_MACHINE\SYSTEM\Setup
 

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

Latest Support Threads

Back
Top Bottom