From 87e94e1eb669b6a8718b5d319c2ff2eaca665d7f Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 16 Nov 2021 19:31:58 -0500 Subject: [PATCH] updated to match from eq --- kms.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kms.ps1 b/kms.ps1 index 7cb2163..de3d524 100644 --- a/kms.ps1 +++ b/kms.ps1 @@ -59,7 +59,7 @@ if ($osType.ProductType -gt 1) { if ($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 -eq "Windows 1[0-1] Professional") { + } elseif ($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 } elseif ($osInfo.WindowsProductName -eq "Windows 10 Enterprise LTSC 2019") {