diff --git a/src/Windows11Bypass/App.config b/src/Windows11Bypass/App.config new file mode 100644 index 0000000..3916e0e --- /dev/null +++ b/src/Windows11Bypass/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Windows11Bypass/Program.cs b/src/Windows11Bypass/Program.cs new file mode 100644 index 0000000..9fa8bb6 --- /dev/null +++ b/src/Windows11Bypass/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Windows11Bypass +{ + static class Program + { + /// + /// Главная точка входа для приложения. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Windows11BypassSecureBootTPM()); + } + } +} diff --git a/src/Windows11Bypass/Windows11Bypass.csproj b/src/Windows11Bypass/Windows11Bypass.csproj new file mode 100644 index 0000000..db20f56 --- /dev/null +++ b/src/Windows11Bypass/Windows11Bypass.csproj @@ -0,0 +1,87 @@ + + + + + Debug + AnyCPU + {8A0189B0-9B81-4087-B9AA-5669F16169B8} + WinExe + Windows11Bypass + Windows11Bypass + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + app.manifest + + + + + + + + + + + + + + + + + Form + + + Windows11BypassSecureBootTPM.cs + + + + + Windows11BypassSecureBootTPM.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/src/Windows11Bypass/Windows11BypassSecureBootTPM.Designer.cs b/src/Windows11Bypass/Windows11BypassSecureBootTPM.Designer.cs new file mode 100644 index 0000000..be49881 --- /dev/null +++ b/src/Windows11Bypass/Windows11BypassSecureBootTPM.Designer.cs @@ -0,0 +1,55 @@ + +namespace Windows11Bypass +{ + partial class Windows11BypassSecureBootTPM + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором форм Windows + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.SuspendLayout(); + // + // Windows11BypassSecureBootTPM + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ClientSize = new System.Drawing.Size(28, 21); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.MaximizeBox = false; + this.Name = "Windows11BypassSecureBootTPM"; + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; + this.Text = "Form1"; + this.WindowState = System.Windows.Forms.FormWindowState.Minimized; + this.ResumeLayout(false); + + } + + #endregion + } +} + diff --git a/src/Windows11Bypass/Windows11BypassSecureBootTPM.cs b/src/Windows11Bypass/Windows11BypassSecureBootTPM.cs new file mode 100644 index 0000000..7f096ad --- /dev/null +++ b/src/Windows11Bypass/Windows11BypassSecureBootTPM.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Microsoft.Win32; + +namespace Windows11Bypass +{ + public partial class Windows11BypassSecureBootTPM : Form + { + 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 BypassCPUCheckandTPMCheckINMoSetup = Registry.LocalMachine.CreateSubKey(@"SYSTEM\Setup\MoSetup"); + BypassCPUCheckandTPMCheckINMoSetup.SetValue("AllowUpgradesWithUnsupportedTPMOrCPU", "1", RegistryValueKind.DWord); + MessageBox.Show("Done."); + } + Application.Exit(); + } + } +} diff --git a/src/Windows11Bypass/Windows11BypassSecureBootTPM.resx b/src/Windows11Bypass/Windows11BypassSecureBootTPM.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/src/Windows11Bypass/Windows11BypassSecureBootTPM.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/src/Windows11Bypass/app.manifest b/src/Windows11Bypass/app.manifest new file mode 100644 index 0000000..a59bfa7 --- /dev/null +++ b/src/Windows11Bypass/app.manifest @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +