Crash to desktop when running an invalid Export Certificate Powershell command #3994

Open
opened 2026-01-30 23:35:09 +00:00 by claunia · 0 comments
Owner

Originally created by @Choke101 on GitHub (Sep 24, 2019).

Originally assigned to: @miniksa on GitHub.

Environment

Platform ServicePack Version VersionString


Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal
0.4.2382.0

Powershell version
$PSVersionTable.PSVersion Major Minor Build Revision


5 1 18362 145

Any other software?
no

Steps to reproduce

  1. Type a poorly formed Export-Certificate powershell command such as
    Export-Certificate -Type CERT -FilePath "cert:\LocalMachine\my\blah" -Force
  2. Don't supply any details and hit enter when prompted for
    "Supply values for the following Parameters CERT:
  3. Get a great long exception stack trace that you can't read before windows closes as it crashes to desktop ending the WindowsTerminal process.

Expected behavior

Get a stack trace, and the terminal doesn't actually close and crash back to desktop.

Actual behavior

Closes window and Crashes back to desktop after printing out stack trace.

Originally created by @Choke101 on GitHub (Sep 24, 2019). Originally assigned to: @miniksa on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0 Windows Terminal 0.4.2382.0 Powershell version $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 1 18362 145 Any other software? no # Steps to reproduce 1. Type a poorly formed Export-Certificate powershell command such as Export-Certificate -Type CERT -FilePath "cert:\LocalMachine\my\blah" -Force 2. Don't supply any details and hit enter when prompted for "Supply values for the following Parameters CERT: 3. Get a great long exception stack trace that you can't read before windows closes as it crashes to desktop ending the WindowsTerminal process. # Expected behavior Get a stack trace, and the terminal doesn't actually close and crash back to desktop. # Actual behavior Closes window and Crashes back to desktop after printing out stack trace.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3994