Skip to main content

Posts

Showing posts from December, 2019

Powershell: Install sqlserver module without internet connection

I am setting up a new server that has no internet connection, I need to install sqlserver module for powershell. this document is helpful https://docs.microsoft.com/en-us/powershell/module/packagemanagement/install-packageprovider?view=powershell-6 Step 1.        Manually Download the package provider NuGet on a computer that has internet Run Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force to install the provider from a computer with an internet connection. After the install, you can find the provider installed in $env:ProgramFiles\PackageManagement\ReferenceAssemblies\\\<ProviderName\>\\\<ProviderVersion\> or $env:LOCALAPPDATA\PackageManagement\ProviderAssemblies\\\<ProviderName\> \\\<ProviderVersion\ >. (In my case, The file name is Microsoft.PackageManagement.NuGetProvider.dll ) Place the <ProviderName> folder, which in this case is the Nuget folder, in the corresponding location on your target computer.  (In my case,