Auto-commit: 2025-10-31 08:59:03
This commit is contained in:
15
Win10_OOBE/ActivateW10OEM/ActivationW10OEM.ps1
Normal file
15
Win10_OOBE/ActivateW10OEM/ActivationW10OEM.ps1
Normal 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")
|
||||
|
||||
|
||||
|
||||
}
|
||||
4
Win10_OOBE/ActivateW10OEM/install.cmd
Normal file
4
Win10_OOBE/ActivateW10OEM/install.cmd
Normal file
@@ -0,0 +1,4 @@
|
||||
powershell -noprofile -command "Set-ExecutionPolicy bypass LocalMachine"
|
||||
powershell -file "%~dp0ActivationW10OEM.ps1"
|
||||
|
||||
timeout 10
|
||||
1
Win10_OOBE/Win10OOBE/install.cmd
Normal file
1
Win10_OOBE/Win10OOBE/install.cmd
Normal file
@@ -0,0 +1 @@
|
||||
c:\windows\system32\sysprep\sysprep.exe /oobe /quit
|
||||
7
Win10_OOBE/readme.md
Normal file
7
Win10_OOBE/readme.md
Normal 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/
|
||||
Reference in New Issue
Block a user