#Install-Module 離線安裝
$parameters = @{ Name = "NichengRep" SourceLocation = "D:\software" PublishLocation = "D:\software" InstallationPolicy = 'Trusted' } Register-PSRepository @parameters Get-PSRepository Install-Module -Name SqlServer -RequiredVersion 21.1.0000000 -Repository NichengRep
#Install-Package 離線安裝,指定文件夾即可
Install-Package SqlServer -Source D:\software
.nupkg包 下載URL地址:https://www.powershellgallery.com/
可從此地址離線下載,點擊手動下載即可