To install the SQL Server PowerShell module and set it to
TLS 1.2:
-
Open a
PowerShell window as administrator.
-
Execute the following commands:
-
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12
-
Install-Module sqlserver -AllowClobber