hello every body
how can i install power shell 7.1 on windows server 2019 core edition ?
i prefer a solution that help me to install this package from internet.
thanks.
hello every body
how can i install power shell 7.1 on windows server 2019 core edition ?
i prefer a solution that help me to install this package from internet.
thanks.
Hi @soheilamiri,
Something here might help:
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Best regards,
Leon
Hi,
You can get powershell 7.1 here
X86
https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x86.msi
X64
https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x64.msi
The msi packages can be installed from the command line using msiexec.exe and the following options
ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL - This property controls the option for adding the Open PowerShell item to the context menu in Windows Explorer.
ENABLE_PSREMOTING - This property controls the option for enabling PowerShell remoting during installation.
REGISTER_MANIFEST - This property controls the option for registering the Windows Event Logging manifest.
The following example shows how to silently install PowerShell with all the install options enabled.
msiexec.exe /package PowerShell-7.0.3-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
For more details you can refer to this link
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7.1#installing-the-msi-package
Best Regards,
Ian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
hi @LeonLaude
thanks for your reply
i install PS7.1 by this command
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
it is installing without any error, how can i change my windows server 2019 core powershell version from 5.1 to 7.1.
by default powershell 5.1 is running.
thanks
windows core default powershell version is 5.1 and pwsh command is not recognized.
what should i do ?
10 people are following this question.