Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save brovish/b3e19084ba3da9e32be611f762a60e5f to your computer and use it in GitHub Desktop.

Select an option

Save brovish/b3e19084ba3da9e32be611f762a60e5f to your computer and use it in GitHub Desktop.
Install SQL Server Powershell module without access to the PowerShell Gallery modules
  1. Run from PS console: Invoke-WebRequest -Uri powershellgallery.com/api/v2/package/sqlserver -Out D:\temp\sqlserver.zip

  2. Extract and save to Program Files\WindowsPowerShell\Modules\sqlserver

  3. Check if Powershell is able to see it: Get-Module -ListAvailable

  4. Import SqlServer module Import-Module SqlServer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment