Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
- run
Enable-PSRemoting
in pwsh v7.2.0 and config winrm to listen to HTTPS. - update pwsh from 7.2.0 to 7.2.1 manually, i.e. installing pwsh v7.2.1 to overwrite v7.2.0
- delete directory 'C:\Windows\System32\PowerShell\7.2.0' manually
- run
Unregister-PSSessionConfiguration PowerShell.7
- run
winrm invoke Restore http://schemas.microsoft.com/wbem/wsman/1/config/plugin '@{}'
- run
Enable-PSRemoting
in pwsh v7.2.1 and re-config winrm to listen to HTTPS. - run
New-PSSession -cn . -Port xxx -UseSSL -ConfigurationName Powershell.7
p.s.
- sorry for that i've forgotten the order between step 3&4.
- 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
Metadata
Metadata
Assignees
Labels
No labels