Repair, bypass, delete, upgrade, repeat
I would like an option to update Windows 11 versions < 24H2 to Windows 11 24H2.
Over time, the version will have to change to the penultimate supported version.
Repair the system
To perform the update, the script could ask whether to automatically run all system repair options to prepare it for the update, and then restart the computer.
Bypass compatibility checks
After restarting, you could run the option again and, by answering no to the question, you would move on to the next question: “Do you want to add the compatibility checks bypass for Windows 11?” If you answer yes, it will add the keys to the system registry.
Delete Users account directories and registry keys
After doing this, you may be asked if you want to delete all user account folders. If the answer is yes, you should ask for confirmation again, pointing out that this will delete the user account data from the computer. If the answer is yes, all subfolders in C:\Users\ and all registry subkeys in the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ ,
whose name is longer than 9 characters and which have a registry string named ProfileImagePath , whose value begins with C:\Users\ .
Without this step, the update may not complete if there are any incorrect account configurations, especially when working with Active Directory.
Download and run official Microsoft ISO
Next, the software may detect the version of Windows 11 currently installed and download the official Microsoft ISO of the next version (e.g., 21H2 detected and 23H2v2 will be downloaded).
Once complete, it may mount the ISO file in Explorer and run the setup, but with the option “No, don't download updates now,” and the user will follow the rest of the instructions, which will then perform the upgrade.
Repeat.
Finally, after restarting, the same option could be run again to switch from the newly updated version to the next one in case it is no longer supported.
Repair, bypass, delete, upgrade, repeat
I would like an option to update Windows 11 versions < 24H2 to Windows 11 24H2.
Over time, the version will have to change to the penultimate supported version.
Repair the system
To perform the update, the script could ask whether to automatically run all system repair options to prepare it for the update, and then restart the computer.
Bypass compatibility checks
After restarting, you could run the option again and, by answering no to the question, you would move on to the next question: “Do you want to add the compatibility checks bypass for Windows 11?” If you answer yes, it will add the keys to the system registry.
Delete Users account directories and registry keys
After doing this, you may be asked if you want to delete all user account folders. If the answer is yes, you should ask for confirmation again, pointing out that this will delete the user account data from the computer. If the answer is yes, all subfolders in
C:\Users\and all registry subkeys in the path:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\,whose name is longer than 9 characters and which have a registry string named
ProfileImagePath, whose value begins withC:\Users\.Without this step, the update may not complete if there are any incorrect account configurations, especially when working with Active Directory.
Download and run official Microsoft ISO
Next, the software may detect the version of Windows 11 currently installed and download the official Microsoft ISO of the next version (e.g., 21H2 detected and 23H2v2 will be downloaded).
Once complete, it may mount the ISO file in Explorer and run the setup, but with the option “No, don't download updates now,” and the user will follow the rest of the instructions, which will then perform the upgrade.
Repeat.
Finally, after restarting, the same option could be run again to switch from the newly updated version to the next one in case it is no longer supported.