Skip to content

Commit

Permalink
Update Win11AllowUpgrades.ps1
Browse files Browse the repository at this point in the history
Signed-off-by: Jauder Ho <[email protected]>
  • Loading branch information
jauderho committed Oct 2, 2024
1 parent 9fff6fd commit fa9a900
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Win11AllowUpgrades.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ function Enable-Win11Upgrade {
New-Item 'HKLM:\SYSTEM\Setup\MoSetup' -Force | Out-Null
}
New-ItemProperty -path 'HKLM:\SYSTEM\Setup\MoSetup' -name 'AllowUpgradesWithUnsupportedTPMOrCPU' -value '1' -PropertyType 'DWord' -Force | Out-Null

If (!(Test-Path 'HKLM:\SYSTEM\Setup\LabConfig')) {
New-Item 'HKLM:\SYSTEM\Setup\LabConfig' -Force | Out-Null
}
New-ItemProperty -path 'HKLM:\SYSTEM\Setup\LabConfig' -name 'BypassTPMCheck' -value '1' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\Setup\LabConfig' -name 'BypassSecureBoot' -value '1' -PropertyType 'DWord' -Force | Out-Null
}

Enable-Win11Upgrade

0 comments on commit fa9a900

Please sign in to comment.