how install PS 7.1 on windows server 2019 Core edition ?

Soheil Amiri 41 Reputation points
2020-11-30T09:19:33.517+00:00

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
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,547 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,816 Reputation points
    2020-11-30T11:42:05.167+00:00

    Hi @Soheil Amiri ,

    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

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ian Xue 37,541 Reputation points Microsoft Vendor
    2020-11-30T12:36:51.743+00:00

    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://learn.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.

    1 person found this answer helpful.
    0 comments No comments

  2. Soheil Amiri 41 Reputation points
    2020-12-01T06:18:51.157+00:00

    hi @Leon Laude
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.