Skip to content

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

Description

@LqkUWp

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions