From b2c7d67e265f80c6bb8cd437e412eb3dbb7efbbf Mon Sep 17 00:00:00 2001 From: Brian Katyl Date: Wed, 9 Oct 2024 20:12:09 -0600 Subject: [PATCH] Removing logic that checks activation regkey before running ato command (#255) --- packaging/googet/google-compute-engine-sysprep.goospec | 1 + sysprep/activate_instance.ps1 | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packaging/googet/google-compute-engine-sysprep.goospec b/packaging/googet/google-compute-engine-sysprep.goospec index 4ee7c328..d48b7470 100644 --- a/packaging/googet/google-compute-engine-sysprep.goospec +++ b/packaging/googet/google-compute-engine-sysprep.goospec @@ -22,6 +22,7 @@ "path": "sysprep/sysprep_uninstall.ps1" }, "releaseNotes": [ + "3.21.0 - Updating activate_instance.ps1.", "3.20.0 - Remove MTLS MDS certificates from certificate store and disk during sysprep.", "3.19.0 - Migrating MTU & Firewall rule modifications to use PowerShell cmdlets instead of netsh for Win10/2016 and above.", "3.18.0 - Updated activate_instance.ps1 to skip setting KMS and activation, if any known GCE Windows BYOL license is attached.", diff --git a/sysprep/activate_instance.ps1 b/sysprep/activate_instance.ps1 index 4e3cbc6f..cfff2c57 100644 --- a/sysprep/activate_instance.ps1 +++ b/sysprep/activate_instance.ps1 @@ -86,12 +86,6 @@ function Activate-Instance { [string]$license_key = $null [int]$retry_count = 3 # Try activation three times. - Write-Output 'Checking instance license activation status.' - if (Verify-ActivationStatus) { - Write-Output "$script:hostname is already licensed and activated." - return - } - Write-Output "$script:hostname needs to be activated by a KMS Server." $license_key = Get-ProductKmsClientKey if (-not $license_key) {