• Extend Windows feature update rollback beyond 10 days.

    Home » Forums » AskWoody support » Windows » Windows – other » Extend Windows feature update rollback beyond 10 days.

    Author
    Topic
    #2490966

    If New Windows feature installation is within the 10 days rollback can be extended to more days, up to 60.

    Check rollback days :

    CMD (as Andmin) DISM /Online /Get-OSUninstallWindow

    Extend rollback days

    CMD (as Admin) DISM /Online /Set-OSUninstallWindow /Value:60 (max).

    https://www.bleepingcomputer.com/news/microsoft/how-to-get-more-time-to-uninstall-windows-10-feature-updates/

    2 users thanked author for this post.
    Viewing 0 reply threads
    Author
    Replies
    • #2491246

      Alex,

      Here’s a little PowerShell script to automate the process with error checks.

      Clear-Host
      
      #Check to see if running as Administrator!
      Function Get-AdminStatus {
      
          If (-NOT ([Security.Principal.WindowsPrincipal] `
                [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
                [Security.Principal.WindowsBuiltInRole] "Administrator"))
          {"User"}
          Else
          {"Administrator"}
      }      # End Get-AdminStatus
      
      If ( (Get-AdminStatus) -ne "Administrator") {
        "Restart PowerShell as Administrator and try again..."
      }
      Else {
      
        $x = & DISM /Online /Get-OSUninstallWindow
        $Value = ($X[6].Split(":"))[1]
      
        If ($Value -lt 60) {
          $Value = Read-Host -Prompt $("Current Value is: $Value" +
                                       "`nEnter desired Value (Max 60)")
          If ($Value -lt 10 -or $Value -gt 60) {
            "nInvalid value: $Value entered.nSetting is changed!"
          }
          Else {
            & DISM /Online /Set-OSUninstallWindow /Value:$Value
          }
      
        } #End If ($Value...
      
      } #End Else
      

      Just copy to a text editor and save as Set-FeatureRollbackDays.ps1

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      2 users thanked author for this post.
    Viewing 0 reply threads
    Reply To: Extend Windows feature update rollback beyond 10 days.

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: