if (-not (Test-LocalImage)) Write-Host "Attempting to use Windows built-in recovery..." -ForegroundColor Yellow

using (Process process = new Process()) process.StartInfo.FileName = "shutdown.exe"; process.StartInfo.Arguments = "/r /t 5 /c \"Windows reset complete. Restarting...\""; process.StartInfo.UseShellExecute = true; process.Start();

# Execute reset Write-Host "Initiating Windows reset..." -ForegroundColor Yellow

Local Reinstall Windows ((free)) -

if (-not (Test-LocalImage)) Write-Host "Attempting to use Windows built-in recovery..." -ForegroundColor Yellow

using (Process process = new Process()) process.StartInfo.FileName = "shutdown.exe"; process.StartInfo.Arguments = "/r /t 5 /c \"Windows reset complete. Restarting...\""; process.StartInfo.UseShellExecute = true; process.Start(); local reinstall windows

# Execute reset Write-Host "Initiating Windows reset..." -ForegroundColor Yellow process.StartInfo.UseShellExecute = true