How to Fix the PowerShell 7.4.6 Issue in 19.0.0/19.0.1 Classic Gateway Patch?

Follow the steps below to resolve the PowerShell 7.4.6 issue in the patched gateway:

  1. Log in to the Gateway command-line interface using the appropriate credentials.
  2. Use the appropriate command to switch to root user (e.g., sudo -i or su depending on your environment).
  3. Run the following command to tag the necessary Docker image:
    ctr i tag docker.io/library/opsramp-powershell:7.4.6 opsramp-powershell:7.4.6 
  4. Run the script to verify the status of PowerShell:
    /opt/gateway/powershell/powershell-check-status.sh
  5. Ensure PowerShell is properly installed by checking the version:
    pwsh --version
  6. After running the above command, you should see the following output:
    PowerShell 7.4.6