PowerShell dbatools offline installation error

  • Hi.

    Server OS - Windows 2019 Std.

    SQL Version 2017 Enterprise.

    1. Downloaded dbatools-master.zip file and extracted all files, copied into following $env:PSMoudulepath folder  C:\Users\Administrator\Documents\WindowsPowerShell\dbatools\
    2. Downloaded Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll. copied into C:\Users\Administrator\Documents\WindowsPowerShell\dbatools\.
    3. Downloaded dbatools.library.2023.5.5.nupkg, and renamed it dbatools.library (File type is LIBRARY File after renamed) then copied into C:\Users\Administrator\Documents\WindowsPowerShell\dbatools\.

    Finally dbatools module not get installed on server side as below errors, how resolve it? Please suggest.

    PS C:\Users\Administrator\Documents\WindowsPowerShell\dbatools> Install-Module dbatools
    PackageManagement\Install-Package : Unable to find dependent module(s) (dbatools.library)
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
    + ... $null = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (dbatools.library:String) [Install-Package], Exception
    + FullyQualifiedErrorId : UnableToFindDependencyPackage,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage


    PS C:\Users\Administrator\Documents\WindowsPowerShell\dbatools> Install-Module dbatools
    PackageManagement\Install-Package : Unable to find dependent module(s) (dbatools.library)
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
    + ... $null = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (dbatools.library:String) [Install-Package], Exception
    + FullyQualifiedErrorId : UnableToFindDependencyPackage,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

     

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply