Reference Article:
how to upgrade to windows11 after blocking it - Microsoft Community
Download the attached tex file as admin in the command prompt.
rename it to Enable_W11_Updates.bat
run the batch file.
Reboot when done.
Reference commands:
reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v ProductVersion /f
reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersion /f
reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersionInfo /f
gpupdate /force