Skip to content

When PowerShell runs elevated on Windows, starting *.msc files locks the console #13744

@sethvs

Description

@sethvs

When PowerShell v7.1.0-preview.7 or v7.1.0-rc.1 is started as Administrator on Windows, and I start some mmc snap-in: compmgmt, diskmgmt, etc., it locks the console until I close the snapin.

It doesn't lock on v7.1.0-preview.6 and earlier versions.
It doesn't lock when PowerShell started as standard user (no elevation).
Also, it doesn't lock, when I start the snapin as mmc compmgmt.msc

I haven't found (yet?) other file types, that behave like this, maybe there are some.

Steps to reproduce

compmgmt

Expected behavior

Computer management snapin starts, console doesn't lock.

Actual behavior

Computer management snapin starts, console locks until snapin closes.

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.0-rc.1
PSEdition                      Core
GitCommitId                    7.1.0-rc.1
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions