function Start-LocalReinstall Write-Host "Starting local Windows reinstall..." -ForegroundColor Yellow
if ($KeepFiles) Start-Process "systemreset.exe" -ArgumentList "-keepmyfiles" -Wait -NoNewWindow else Start-Process "systemreset.exe" -ArgumentList "-cleanpc" -Wait -NoNewWindow local reinstall windows
1. User Interface Component // Windows Reset UI (WPF Example) public partial class ResetWindow : Window local reinstall windows