top of page

How to upgrade PowerShell from 7.1.7 to 7.2 or 7.x.x in SDDC.

  • Writer: Milton Sarkar
    Milton Sarkar
  • 2 days ago
  • 1 min read

Reason for upgrading PowerShell in SDDC: The upgrade was necessary because PowerShell reporting modules are not supported in version 7.1.7; a minimum of version 7.2 is required.


Workaround:

1.If your SDDC lacks a direct Internet connection, a Proxy server needs to be added to download required modules.


 #export https_proxy="http://proxy:port"

 #export http_proxy="http://proxy:port"




2.Download the PowerShell 7.2 or 7.x Installer.



7.5:

#wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-linux-x64.tar.gz -P





3. Remove the previous Powershell version:

#sudo rm -rf /usr/local/share/powershell

#sudo rm /usr/bin/pwsh




4.Use the following command to extract PowerShell:

#tar -xvf /tmp/powershell-7.5.0-linux-x64.tar.gz -C /usr/local/share/powershell



5.Go to below path from SDDC, add permission and check version,

#ln -s /usr/local/share/powershell/pwsh /usr/bin/pwsh

#chmod +x /usr/local/share/powershell/pwsh

#pwsh --version









Comments


bottom of page