Comments (5)
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.
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.
Just add logic in your code to check disk space.
from mediatool.
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.
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)
- in place upgrade HOT 1
- Windows Operating System Issue HOT 2
- ISO not being generated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediatool.