The PowerShell modules (aka sqlps) are installed by default when installing Microsoft SQL Server.
You can manually install the PowerShell Extensions for SQL Server 2016 by installing the following components from the Microsoft® SQL Server® 2016 Feature Pack:
- Microsoft® System CLR Types for Microsoft SQL Server® 2016 (SQLSysClrTypes.msi)
- Microsoft® SQL Server® 2016 Shared Management Objects (SharedManagementObjects.msi)
- Microsoft® Windows PowerShell Extensions for Microsoft SQL Server® 2016 (PowerShellTools.msi)
Check if the module has been successfully installed:
# Import the SQL Server Module. Import-Module Sqlps -DisableNameChecking # To check whether the module is installed. Get-Module -ListAvailable -Name Sqlps
Check-out the official complete guide SQL Server PowerShell.