You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/powershell/download-sql-server-ps-module.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ For help topics, go to:
37
37
[SQL Server Management Studio (SSMS)](../ssms/download-sql-server-management-studio-ssms.md), doesn't install either PowerShell module. To use PowerShell with SSMS, install the **SqlServer** module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/Sqlserver).
38
38
39
39
> [!NOTE]
40
-
> SQL Server Management Studio (SSMS) 16.x (and earlier versions) included a version the **SqlServer** module.
40
+
> SQL Server Management Studio (SSMS) 16.x (and earlier versions) included a the **SQLPS** module.
41
41
42
42
## Azure Data Studio
43
43
@@ -73,13 +73,34 @@ This section walks you through the steps of installing the SqlServer PowerShell
73
73
Save-Module -Name SqlServer -Path $env:TEMP
74
74
```
75
75
76
-
1. Browse to the folder location in File Explorer to verify that a `$env:TEMP\SQLServer\<SomeVersion>` subfolder exists.
77
-
1. Copy the `$env:TEMP\SQLServer\<SomeVersion>` folder you found in step 2 to the destination offline computer in `C:\Program Files\WindowsPowerShell\Modules` folder (this folder would work for both PS5 and PS7).
78
-
1. On the offline computer, open a PowerShell window.
79
-
1. Run the following command to install the SqlServer PowerShell module on the offline computer. This command essentially registers the module on the offline computer as the files have already been copied.
76
+
1. Browse to the folder location in File Explorer to verify that a `$env:TEMP\SQLServer\<SomeVersion>` folder exists or run this command:
80
77
81
78
```powershell
82
-
Import-Module -Name SqlServer
79
+
Get-ChildItem -Path $env:TEMP\SQLServer\
80
+
```
81
+
82
+
1. Copy the `$env:TEMP\SQLServer\<SomeVersion>` folder you found in step 2 to the destination offline computer in `%ProgramFiles%\WindowsPowerShell\Modules\SqlServer` folder (this folder would work for both PS5 and PS7). Be sure to replace `<SomeVersion>` with the value you found in the previous step.
0 commit comments