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")
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user