Giter VIP home page Giter VIP logo

Comments (5)

mtniehaus avatar mtniehaus commented on August 17, 2024

Can you try again with the updated zip file here on Github? I haven't seen that issue with my most recent testing. The basic challenge is that it appears the MS CDN doesn't have all the images in all locations, so it can fail to download some images from some locations.

from mediatool.

mtniehaus avatar mtniehaus commented on August 17, 2024

It's also possible that the download is failing for other reasons, e.g. lack of disk space. Check the Bits-Client event log to see if any error message was logged.

from mediatool.

mattbalzan avatar mattbalzan commented on August 17, 2024

Just add logic in your code to check disk space.

from mediatool.

mattbalzan avatar mattbalzan commented on August 17, 2024

Here’s the code:

# Define the threshold for free space (5 GB)
$threshold = 5GB

# Get the OS drive (assumed to be the drive with the Windows folder)
$osDrive = (Get-WmiObject Win32_OperatingSystem).SystemDrive

# Get the free space on the OS drive
$freeSpace = (Get-PSDrive -Name $osDrive.TrimEnd(':')).Free

# Check if the free space is greater than or equal to the threshold

if ($freeSpace -ge $threshold) {
    Write-Output "The OS drive ($osDrive) has sufficient free space: $([math]::round($freeSpace/1GB, 2)) GB."
} else {
    Write-Output "Warning: The OS drive ($osDrive) has less than 5 GB of free space. Current free space: $([math]::round($freeSpace/1GB, 2)) GB."
}

from mediatool.

mtniehaus avatar mtniehaus commented on August 17, 2024

I added logic to check local paths for available free space, and will check before downloading the ESD file whether it will fit. I didn't check to see if the ISO won't fit, but did add error handling that will show when the ISO creation fails.

You can specify a network path for the download; I didn't add logic to check that location.

from mediatool.

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.