[PR #18021] OpenConsole.psm1 PSVersion check #31428

Open
opened 2026-01-31 09:47:14 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18021

State: closed
Merged: Yes


Summary of the Pull Request

Added a check in OpenConsole.psm1 to throw an error if the Powershell version is <7.

References and Relevant Issues

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

powershell_error
Confirmed that attempting to Import-Module .\tools\OpenConsole.psm1 throws an error on Powershell 5.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18021 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Added a check in OpenConsole.psm1 to throw an error if the Powershell version is <7. ## References and Relevant Issues ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed ![powershell_error](https://github.com/user-attachments/assets/9022012b-7f5e-4842-adf3-741214787df5) \ Confirmed that attempting to `Import-Module .\tools\OpenConsole.psm1` throws an error on Powershell 5. ## PR Checklist - [x] Closes #17505 - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:47:14 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31428