Prerequisites:
Since release 2022 R4/V12.0.32 with runtime 95.2, you need to install:
RedHat or Oracle architectures | Microsoft SQL Server architectures |
---|---|
Microsoft PowerShell 7.2 or later | Microsoft PowerShell 7.2 or later |
Microsoft SQL Server PowerShell module |
PowerShell for Microsoft SQL Server architectures
- Install the MSI package.
- Open an MS-DOS command prompt with administrator rights.
- Enter Pwsh.exe to execute the PowerShell installation wizard.
- Enter $PSVersionTable to check that you are in version 7.2 or higher.
- Enter Install-Module -Name SqlServer -Scope AllUsers -force to install the Microsoft SQL Server PowerShell module.
- Enter Get-InstalledModule -Name SqlServer to make sure that the installation went well.
Note: You can follow these procedures to install a PowerShell MSI package or module in offline mode:
- Install a PowerShell MSI package in offline mode (Prerequisites will be updated soon in OHC)
- Install a PowerShell module in offline mode (Prerequisites will be updated soon in OHC)
PowerShell for RedHat architectures
You can install via direct download Microsoft PowerShell 7.2 or later, or you can follow these steps:
- Connect to the machine via PuTTy.
- Enter sudo -i to execute the PowerShell installation wizard.
- Enter curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo to register the Microsoft RedHat repository.
- Enter sudo yum install --assumeyes powershell to install PowerShell.
- Enter pwsh to launch PowerShell and make sure that the installation went well.
- Enter exit to close PowerShell.