1
0
Files
2025-10-31 08:58:36 +01:00

18 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ⬆️ Windows 11 In-Place Upgrade (Batch)
## 🔧 What it does
- Prepares folders and log (`C:\exploit\log\migrationw11.log`)
- Runs **pending reboot check** (`upgrade_GetPendingReboot.cmd`) and **cleanup** (`upgrade_Cleanup.cmd`)
- Sets PowerShell **ExecutionPolicy Bypass**
- Detects OS **UI culture** and selects **install.wim index** (EN/ES/FR/IT/PT)
- Launches `setup.exe` **/quiet /auto Upgrade** using local `install.wim`, installs drivers from `C:\pnpdrivers`, **DynamicUpdate Disabled**, runs `upgrade_setupcomplete.cmd` at OOBE
- Reports status to **LANDesk/LDMS** via `SendTaskStatus.exe`
- Logs return code and removes `C:\MigrationW11` on failure
## ✅ Prerequisites
- Run as **Administrator**
- The scripts folder (`%~dp0`) must contain **Windows Setup**: `setup.exe`, `sources\install.wim`, and `upgrade_setupcomplete.cmd`
- Companion scripts present: `upgrade_GetPendingReboot.cmd`, `upgrade_Cleanup.cmd`
- **Drivers** in `C:\pnpdrivers`
- **LDMS** vars available: `LDMS_LOCAL_DIR`, `task_ID`; server name set in script (`ldcore.kiabi.fr`)
- Sufficient disk space; **no reboot pending**; network not required (DynamicUpdate disabled)