القائمة الرئيسية

الصفحات

Windows 7 Portable Usb | PC |

# Clean up mount if ($mountDrive -match "^[A-Z]:\\?$" -and $mountDrive -ne $tempExtract -and (Get-PSDrive -Name $mountDrive[0] -ErrorAction SilentlyContinue)) Dismount-DiskImage -ImagePath $IsoPath -ErrorAction SilentlyContinue elseif ($tempExtract -and (Test-Path $tempExtract)) Remove-Item $tempExtract -Recurse -Force -ErrorAction SilentlyContinue

# Helper: Run diskpart script function Invoke-DiskPart param([string[]]$Commands) $script = [string]::Join("`r`n", $Commands) + "`r`nexit" $script windows 7 portable usb

# Validate USB drive letter if (-not ($UsbDriveLetter -match "^[A-Za-z]:$")) Write-Host "Invalid drive letter format. Use like D: or E:" -ForegroundColor Red exit 1 # Clean up mount if ($mountDrive -match "^[A-Z]:\\

3/جديد الاجهزة/post-grid