Giter Site home page Giter Site logo

Comments (7)

dennisa72295 avatar dennisa72295 commented on July 18, 2024

The directory structure between the older version and the latest release of dbatool.library is totally different. The older version I only see a folder named 2023.5.5 under the main folder, while the new version has several folders and files listed

from dbatools.library.

jpomfret avatar jpomfret commented on July 18, 2024

Hi @dennisa72295 - when you download and unzip make sure you match the directory structure in My Documents\WindowsPowershell\Modules

I would expect

  • folder for the module - e.g. ...My Documents\WindowsPowershell\Modules\dbatools.library
  • folder for the version - e.g. ...My Documents\WindowsPowershell\Modules\dbatools.library\2023.9.21
  • module files in that folder - e.g. ...My Documents\WindowsPowershell\Modules\dbatools.library\2023.9.21\dbatools.library.psd1

also when you download from the internet sometimes the files are blocked - you can unblock them all like this:

Get-ChildItem -Path '...My Documents\WindowsPowershell\Modules\dbatools.library\2023.9.21' -Recurse | Unblock-File 

Which is the equivalent of checking this checkbox
image

from dbatools.library.

dennisa72295 avatar dennisa72295 commented on July 18, 2024

The downloadable zip file for the dbatools.library doesn't have the same directory structure. Meaning that in the previous version when I unzipped it there was a 2023.9.21 folder, however, in the latest version there is no such folder (2024.3.9) in the zip file. The only way I could get a correct module installed was to go to a personal off network PC and install from the internet then copy the installed directories to USB and sneakernet them over to my on network PC. This makes any future upgrades a lot harder to do.

from dbatools.library.

jpomfret avatar jpomfret commented on July 18, 2024

Where do you download the zip from? PowerShell Gallery?

from dbatools.library.

dennisa72295 avatar dennisa72295 commented on July 18, 2024

https://github.com/dataplat/dbatools.library

from dbatools.library.

jpomfret avatar jpomfret commented on July 18, 2024

Gotcha - so I would suggest writing a PowerShell script to create the folder structure you need.. I'm not sure about how that zip gets generated - I don't believe it's something we can control I'm afraid.

from dbatools.library.

dennisa72295 avatar dennisa72295 commented on July 18, 2024

It should be easy enough to take and installed version and upload it to the GitHub repo for download. What is there seems to be source code that isn't compiled yet.

from dbatools.library.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.