This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM) | |
| This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the **Windows 11 Upgrade Assistant** and **setup.exe from Windows installation media**. It eliminates common upgrade blocks such as: | |
| * *This PC doesn't currently meet Windows 11 system requirements.* | |
| * *TPM 2.0 must be supported and enabled on this PC.* | |
| * *The processor isn't currently supported for Windows 11.* | |
| ## What It Does |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class EventUtil | |
| { | |
| // The repetition in here is because of the four combinations of handlers (sync/async * with/without arg) | |
| public static Action AsNonRenderingEventHandler(Action callback) | |
| => new SyncReceiver(callback).Invoke; | |
| public static Action<TValue> AsNonRenderingEventHandler<TValue>(Action<TValue> callback) | |
| => new SyncReceiver<TValue>(callback).Invoke; | |
| public static Func<Task> AsNonRenderingEventHandler(Func<Task> callback) | |
| => new AsyncReceiver(callback).Invoke; | |
| public static Func<TValue, Task> AsNonRenderingEventHandler<TValue>(Func<TValue, Task> callback) |