Forum Discussion
how to install smo in an offline machine
Do you need to install the package in a computer with no-internet connection ? that's what you mean with offline machine ?
If that's the case please check this link
https://www.c-sharpcorner.com/blogs/how-to-install-powershell-modules-in-offline-mode
Regards
Javier
- goh1983Dec 15, 2023Copper Contributor
hi,
I tried . it does not work.
it was throwing
PS C:\Users\Administrator> Save-Module -Name Microsoft.SqlServer.SqlManagementObjects -RequiredVersion 170.18.0 -Repository nuget -Path C:\localrepo
WARNING: Dependency loop detected for package 'Microsoft.SqlServer.SqlManagementObjects'.
WARNING: Package 'Microsoft.SqlServer.SqlManagementObjects' failed to install.
PackageManagement\Save-Package : Unable to save the module 'Microsoft.SqlServer.SqlManagementObjects'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1598 char:21
+ $null = PackageManagement\Save-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power...ets.SavePackage:SavePackage) [Save-Package], Except
ion
+ FullyQualifiedErrorId : ProviderFailToDownloadFile,Microsoft.PowerShell.PackageManagement.Cmdlets.SavePackagePS C:\Users\Administrator>
any idea on how to solve this
thank you