Skip to content

Commit

Permalink
Removing logic that checks activation regkey before running ato comma…
Browse files Browse the repository at this point in the history
…nd (#255)
  • Loading branch information
bkatyl authored Oct 10, 2024
1 parent 7921d5d commit b2c7d67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions packaging/googet/google-compute-engine-sysprep.goospec
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
6 changes: 0 additions & 6 deletions sysprep/activate_instance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b2c7d67

Please sign in to comment.