Windows-Admin-Center-Ideas-and-Feedback icon indicating copy to clipboard operation
Windows-Admin-Center-Ideas-and-Feedback copied to clipboard

powershell module always execute PS version5

Open soheilamiri opened this issue 2 years ago • 3 comments

Gateway Version:2211 build 1.4.2212.08003 Extension Version powersell 2.28.0 To Reproduce Steps to reproduce the behavior:

  1. install last version of PS by using this script Invoke-WebRequest -Uri https://aka.ms/install-powershell.ps1 -OutFile install-powershell.ps1; ./install-powershell.ps1
  2. new powershell will be install and is accessible via manually execute \powershel\7\pwsh.exe
  3. but when i use powershell module in wac for the server new PS is install, wac will execute PS v5 again.

Expected behavior i except WAC check my ps version suggest me that new version is available or give me an option to show my new PS installation path to execute my file instead old version. Screenshots & Additional context here is my post to ask help https://techcommunity.microsoft.com/t5/windows-admin-center/how-change-defualt-powershell-version-running-from-wac/m-p/3833162#M1904 please guide me .

soheilamiri avatar Jun 14 '23 18:06 soheilamiri

PWSH is running fine, however the XTERM window used to create the psuedo-terminal in your web browser does not maintain an interactive console when opened. For instance, attempting to enter 'DISKPART' interactive will do the same thing -- open, then immediately close.

image

image

cmkb3 avatar Jun 29 '23 21:06 cmkb3

Hello @cmkb3, Thank you for bringing this up. I've logged this as a bug and I am currently investigating the issue. Kind regards, Rebecca.

RebeccaMbulaMs avatar Jul 05 '23 04:07 RebeccaMbulaMs

hi, any update about this issue?

soheilamiri avatar Jul 15 '24 05:07 soheilamiri