sync: auto-sync from HOWARD-HOME at 2026-07-05 09:56:12
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-07-05 09:56:12
This commit is contained in:
20
.wd.ps1
Normal file
20
.wd.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
Import-Module BitsTransfer
|
||||
$deadline = (Get-Date).AddMinutes(50)
|
||||
while ((Get-Date) -lt $deadline) {
|
||||
$j = Get-BitsTransfer -Name 'Win11ARM64ISO' -ErrorAction SilentlyContinue
|
||||
if (-not $j) { 'JOB GONE'; break }
|
||||
if ($j.JobState -eq 'Transferred') {
|
||||
Complete-BitsTransfer -BitsJob $j
|
||||
Start-Sleep -Seconds 3
|
||||
$f = Get-Item 'C:\Users\howar\Desktop\Win11_25H2_English_Arm64_v2.iso'
|
||||
'DONE size=' + $f.Length
|
||||
break
|
||||
}
|
||||
if ($j.JobState -in 'Error','TransientError') {
|
||||
'STATE=' + $j.JobState + ' :: ' + $j.ErrorDescription
|
||||
if ($j.JobState -eq 'Error') { break }
|
||||
}
|
||||
Start-Sleep -Seconds 30
|
||||
}
|
||||
$j = Get-BitsTransfer -Name 'Win11ARM64ISO' -ErrorAction SilentlyContinue
|
||||
if ($j) { 'FINAL state=' + $j.JobState + ' bytes=' + $j.BytesTransferred + '/' + $j.BytesTotal }
|
||||
Reference in New Issue
Block a user