question

soheilamiri avatar image
0 Votes"
soheilamiri asked soheilamiri commented

how install PS 7.1 on windows server 2019 Core edition ?

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.

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
2 Votes"
LeonLaude answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IanXue-MSFT avatar image
1 Vote"
IanXue-MSFT answered IanXue-MSFT edited

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.





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

soheilamiri avatar image
0 Votes"
soheilamiri answered soheilamiri commented

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.




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

pwsh.exe >> $profile

0 Votes 0 ·

thanks
windows core default powershell version is 5.1 and pwsh command is not recognized.
what should i do ?

0 Votes 0 ·