Auto-commit: 2025-10-31 08:59:03

This commit is contained in:
David Wuibaille
2025-10-31 08:59:03 +01:00
parent dfae1d60d5
commit efdcdaed4f
32 changed files with 2822 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
$ProductKey = (Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey
cscript "c:\windows\system32\slmgr.vbs" -ipk $ProductKey
cscript "c:\windows\system32\slmgr.vbs" -ato
$ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | Where-Object -Property Name -Like "Windows*"
$active = $ta.LicenseStatus
$description = $ta.Description
write-host "--- $description ---"
if ($description -notlike "*OEM*") {
write-host "Erreur Activation"
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}

View File

@@ -0,0 +1,4 @@
powershell -noprofile -command "Set-ExecutionPolicy bypass LocalMachine"
powershell -file "%~dp0ActivationW10OEM.ps1"
timeout 10

View File

@@ -0,0 +1 @@
c:\windows\system32\sysprep\sysprep.exe /oobe /quit

7
Win10_OOBE/readme.md Normal file
View File

@@ -0,0 +1,7 @@
# MDT — OOBE & OEM Activation (Apps)
These two **MDT applications** accompany the article on **managing Windows 10 OEM deployment with MDT**:
- **OOBE Mode** — launches Windows first-run experience (`sysprep /oobe`).
- **OEM Activation** — applies embedded OEM key and activates Windows.
**Read the article:** https://blog.wuibaille.fr/2023/04/deploiement-de-windows-11-en-oobe-avec-mdt/