Skip to content

Commit

Permalink
Microwin Fix on Bare Metal
Browse files Browse the repository at this point in the history
Fixes the "The computer restarted unexpectedly" error on a fresh install
  • Loading branch information
ChrisTitusTech committed Nov 17, 2023
1 parent f69663c commit d5cad9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/public/Invoke-WPFMicrowin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ function Invoke-WPFMicrowin {
reg add "HKLM\zSYSTEM\Setup\LabConfig" /v "BypassStorageCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\zSYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\zSYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f
# Fix Computer Restarted Unexpectedly Error on New Bare Metal Install
reg add "HKLM\zSYSTEM\Setup\Status\ChildCompletion" /v "setup.exe" /t REG_DWORD /d 3 /f
} catch {
Write-Error "An unexpected error occurred: $_"
} finally {
Expand Down

0 comments on commit d5cad9b

Please sign in to comment.