From c11cf78fd4e4dac7aa8ce65cbd488fed6391b38e Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 16 Nov 2021 19:33:54 -0500 Subject: [PATCH] updated 10 logic to just install pro key if no others match --- kms.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kms.ps1 b/kms.ps1 index 1c9e2cc..320c14a 100644 --- a/kms.ps1 +++ b/kms.ps1 @@ -65,14 +65,14 @@ if ($osType.ProductType -gt 1) { } elseif ($osInfo.WindowsProductName -match "Windows 1[0-1] Enterprise") { # Windows 10/11 Enterprise c:\Windows\System32\cscript.exe /nologo c:\Windows\System32\slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 - } elseif ($osInfo.WindowsProductName -match "Windows 1[0-1] Professional") { + } else<#if ($osInfo.WindowsProductName -match "Windows 1[0-1] Professional") #>{ # Windows 10/11 Pro c:\Windows\System32\cscript.exe /nologo c:\Windows\System32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX - } else { + } <#else { $message = "Your desktop version is not supported or could not be detected corrected. Version: $($osInfo.WindowsProductName)" write-error $message exit - } + }#> } else { if ($osInfo.WindowsProductName -eq "Windows Server 2022 DataCenter") { # windows Server 2022 Datacenter