14 lines
686 B
PowerShell
14 lines
686 B
PowerShell
$iso = 'C:\Users\howar\Desktop\Win11_25H2_English_Arm64_v2.iso'
|
|
$m = Mount-DiskImage -ImagePath $iso -PassThru
|
|
$dl = ($m | Get-Volume).DriveLetter
|
|
'mounted at ' + $dl + ':'
|
|
Get-ChildItem ($dl + ':\') | Select-Object Name | Format-Table -AutoSize | Out-String
|
|
$wim = $dl + ':\sources\install.wim'
|
|
$esd = $dl + ':\sources\install.esd'
|
|
if (Test-Path $wim) { 'install.wim: ' + [math]::Round((Get-Item $wim).Length/1GB,2) + ' GB' }
|
|
if (Test-Path $esd) { 'install.esd: ' + [math]::Round((Get-Item $esd).Length/1GB,2) + ' GB' }
|
|
'boot.wim: ' + (Test-Path ($dl + ':\sources\boot.wim'))
|
|
'setup.exe: ' + (Test-Path ($dl + ':\setup.exe'))
|
|
Dismount-DiskImage -ImagePath $iso | Out-Null
|
|
'dismounted'
|