Skip to content

Commit

Permalink
Updated Windows 11 Bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
GlebYoutuber authored Nov 30, 2021
1 parent 0c36949 commit 5d58771
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Windows11Bypass/Windows11BypassSecureBootTPM.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand All @@ -9,7 +10,6 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Win32;

namespace Windows11Bypass
{
Expand All @@ -20,9 +20,11 @@ public Windows11BypassSecureBootTPM()
InitializeComponent();
if (MessageBox.Show("Do you want Bypass Windows 11 Secure Boot Check and TPM 2.0?", "Bypass Windows 11 Secure Boot Check and TPM 2.0", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
{
RegistryKey bypasstpmandsecurebootcheck = Registry.LocalMachine.CreateSubKey(@"SYSTEM\Setup\LabConfig");
bypasstpmandsecurebootcheck.SetValue("BypassTPMCheck", "1", RegistryValueKind.DWord);
bypasstpmandsecurebootcheck.SetValue("BypassSecureBootCheck", "1", RegistryValueKind.DWord);
RegistryKey bypasstpmsecurebootramstoragecheck = Registry.LocalMachine.CreateSubKey(@"SYSTEM\Setup\LabConfig");
bypasstpmsecurebootramstoragecheck.SetValue("BypassTPMCheck", "1", RegistryValueKind.DWord);
bypasstpmsecurebootramstoragecheck.SetValue("BypassSecureBootCheck", "1", RegistryValueKind.DWord);
bypasstpmsecurebootramstoragecheck.SetValue("BypassRAMCheck", "1", RegistryValueKind.DWord);
bypasstpmsecurebootramstoragecheck.SetValue("BypassStorageCheck", "1", RegistryValueKind.DWord);
RegistryKey BypassCPUCheckandTPMCheckINMoSetup = Registry.LocalMachine.CreateSubKey(@"SYSTEM\Setup\MoSetup");
BypassCPUCheckandTPMCheckINMoSetup.SetValue("AllowUpgradesWithUnsupportedTPMOrCPU", "1", RegistryValueKind.DWord);
MessageBox.Show("Done.");
Expand Down

0 comments on commit 5d58771

Please sign in to comment.