Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

New-PSSession throws a black window named 'c:\windows\system32\wsmprovhost.exe' #85

Copy link
Copy link
@LqkUWp

Description

@LqkUWp
Issue body actions

Prerequisites

Steps to reproduce

  1. run Enable-PSRemoting in pwsh v7.2.0 and config winrm to listen to HTTPS.
  2. update pwsh from 7.2.0 to 7.2.1 manually, i.e. installing pwsh v7.2.1 to overwrite v7.2.0
  3. delete directory 'C:\Windows\System32\PowerShell\7.2.0' manually
  4. run Unregister-PSSessionConfiguration PowerShell.7
  5. run winrm invoke Restore http://schemas.microsoft.com/wbem/wsman/1/config/plugin '@{}'
  6. run Enable-PSRemoting in pwsh v7.2.1 and re-config winrm to listen to HTTPS.
  7. run
    New-PSSession -cn . -Port xxx -UseSSL -ConfigurationName Powershell.7
    

p.s.

  1. sorry for that i've forgotten the order between step 3&4.
  2. everything is fine before pwsh v7.2.1. after updating to v7.2.1, step 3-4 messed up winrm. i tried to repair that via step 5 according to error info of Get-PSSessionConfiguration.

Expected behavior

all pssession stuff runs in background and no black window pops up.

Actual behavior

1. a black window named 'c:\windows\system32\wsmprovhost.exe' pops up.
2. there are wsmprovhost and conhost foreground processes in task manager. 
3. black window is auto closed after running `Remove-PSSession xxx`.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

  1. snapshot of task manager after all procedure in 'Steps to reproduce'
    image
  2. snapshot of the pop-up black window
    image
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.