Skip to content

Download via dbatools.io/zip excludes bin\dbatools-index.json #30

@Shashahan

Description

@Shashahan

Dear all,

when you download the zip file for offline install via dbatools.io/zip, the file dbatools-index.json in folder bin is missing.
Instead the file dbatools-index.json.REMOVED.git-id is there with the content:
dd3f591362f6ac11490b76095057c2be87e82f34

If you run the command import-module dbatools the following error is generated:
Resolve-Path : Cannot find path 'C:\Program Files\WindowsPowerShell\Modules\dbatools\bin\dbatools-index.json' because
it does not exist.

Using a command like Get-DbaDatabase -SqlInstance Instance returns this error:
Get-DbaDatabase : Cannot process argument transformation on parameter 'SqlInstance'. Could not load file or assembly
'Microsoft.Data.SqlClient, Version=2.0.20168.4, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its
dependencies. The system cannot find the file specified.

Installing dbatools from the powershell gallery works just fine, but isn't an option for deployment on servers without internet access.

Kind Regards,
Olaf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions