Worklet 'upload file' limitation

I have uploaded to our CDN and the install seems to be working.

Not sure if you can find any improvements here:

############# Change the settings in this block #######################
$isoDownload = 'XXXXXXX'
$isoPath = 'C:\windows\Temp\SW_DVD9_Win_Pro_10_1909.8_64BIT_English_Pro_Ent_EDU_N_MLF_X22-36267.ISO'
$logPath = 'C:\windows\Temp'
#######################################################################

#Download ISO
Invoke-WebRequest -Uri $isoDownload -UseBasicParsing -OutFile $isoPath

#Mount iso
if (Test-Path $isoPath) {
    $driveLetter = (Mount-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter
    $driveLetter = (Get-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter
    Write-Output "ISO Mounted to $driveLetter during attempt 1"
    if (!$DriveLetter){
        Mount-DiskImage -ImagePath $isoPath -StorageType ISO
        Write-Output "ISO Mounted to $driveLetter attempt2"
    }
} else {
    throw "ISO could not be found at $isoPath"
}
If (-not( $driveLetter)){
    throw "ISO could not be mounted"
}

#Launch Upgrade
Write-Output "The Upgrade will commence shortly. Your PC will be rebooted soon. Please save any work you do not want to lose."
    #
if ($driveLetter) {
    Invoke-Expression "$($driveLetter):\setup.exe /auto Upgrade /quiet /Compat IgnoreWarning /DynamicUpdate disable /copylogs $logPath"        
} else {
    throw "Mapped drive letter did not exist and Setup.exe was not run"
}

Also, are we any closer to fixing the Automox upload issue? CDN has a cost per bandwidth, approx $1 per download for us in Aus :frowning:

They’re still working on it. I’ll post an update when I know more. Thanks for sharing your workaround!