MicrosoftDocs / Windows-Admin-Center-Ideas-and-Feedback

Windows Admin Center's hub for ideas and feedback.
Creative Commons Attribution 4.0 International
20 stars 9 forks source link

powershell module always execute PS version5 #287

Open soheilamiri opened 1 year ago

soheilamiri commented 1 year ago

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 .

cmkb3 commented 1 year ago

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

RebeccaMbulaMs commented 1 year ago

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.

soheilamiri commented 2 months ago

hi, any update about this issue?