Skip to content

Instantly share code, notes, and snippets.

@Nevor
Last active April 11, 2024 19:11
Show Gist options
  • Save Nevor/ed3719dad0cf66893e42a9ba024c9174 to your computer and use it in GitHub Desktop.
Save Nevor/ed3719dad0cf66893e42a9ba024c9174 to your computer and use it in GitHub Desktop.
BSOD without elevation from Powershell on Windows 10 Creator Update (Update: Problem is BACK on Windows 11 after KB5034848)
# From https://stackoverflow.com/questions/43583651/windows-10-creators-updates-breaks-winforms-apps-bsod
# (This can be copy pasted into Powershell)
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$form = new-object System.Windows.Forms.Form
$lastPanel = $form
for($i = 0; $i -lt 45; $i++) {
$newPanel = new-object System.Windows.Forms.Panel
$newPanel.Dock = [System.Windows.Forms.DockStyle]::Fill
$lastPanel.Controls.Add($newPanel)
$lastPanel = $newPanel
}
$form.ShowDialog()
# Then move the mouse on the window
@wonsil
Copy link

wonsil commented Apr 11, 2024

The PowerShell script does crash our Windows 11 AMD machines.

Correction: Intel machines also crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment