November 2018
Intermediate to advanced
566 pages
17h 15m
English
To install modules, you will need to launch PowerShell with elevated privileges. Start PowerShell as a superuser, run the following script to install the module, and list out the cmdlets that are part of the module:
Set-PSRepository -Name PsGallery -InstallationPolicy Trusted
Install-Module SqlServer
if ((Get-Module -ListAvailable).Name -contains 'SqlServer') {
Get-Command -CommandType Cmdlet | Where-Object Source -Match 'SQL' | Group-Object Source
}The SqlServer module should be installed and the cmdlets within the module should be shown, as follows:

Read now
Unlock full access