From c90973b305971cc79fd89a316ecaf4f7713bd3be Mon Sep 17 00:00:00 2001 From: Brian Simpson <50429915+bmsimp@users.noreply.github.com> Date: Wed, 12 Aug 2026 08:23:26 -0500 Subject: [PATCH] fix(enterprise): correct domainSquattingEnabled replacement pattern The setup script searched the downloaded templates for `$domainSquattingEnabled = 1 #`, but both Deploy and Detect ship the setting as `= 0 #`. Apply-Replacements matches with String.Contains, so the lookup missed, the pattern landed in $missing, and the script threw "Failed to customize the Deploy template" before writing any output files. This failed for every user regardless of the answers given at the prompts, and it was the only pattern of the 23 that did not match. Verified all 23 patterns against the current Deploy and Detect templates on main, then ran the replacement block end to end: every replacement applies and both generated scripts parse as valid PowerShell. Co-Authored-By: Claude Opus 5 (1M context) --- enterprise/Setup-Windows-Chrome-and-Edge.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/Setup-Windows-Chrome-and-Edge.ps1 b/enterprise/Setup-Windows-Chrome-and-Edge.ps1 index 502b4ee..dd33a71 100644 --- a/enterprise/Setup-Windows-Chrome-and-Edge.ps1 +++ b/enterprise/Setup-Windows-Chrome-and-Edge.ps1 @@ -227,7 +227,7 @@ $replacements = @( @{ Pattern = '$cippTenantId = "" #'; Value = "`$cippTenantId = $(Format-SingleQuoted $cfg_cippTenantId) #" } @{ Pattern = '$customRulesUrl = "" #'; Value = "`$customRulesUrl = $(Format-SingleQuoted $cfg_customRulesUrl) #" } @{ Pattern = '$updateInterval = 24 #'; Value = "`$updateInterval = $cfg_updateInterval #" } - @{ Pattern = '$domainSquattingEnabled = 1 #'; Value = "`$domainSquattingEnabled = $cfg_domainSquattingEnabled #" } + @{ Pattern = '$domainSquattingEnabled = 0 #'; Value = "`$domainSquattingEnabled = $cfg_domainSquattingEnabled #" } @{ Pattern = '$enableDebugLogging = 0 #'; Value = "`$enableDebugLogging = $cfg_enableDebugLogging #" } @{ Pattern = '$enableGenericWebhook = 0 #'; Value = "`$enableGenericWebhook = $cfg_enableGenericWebhook #" } @{ Pattern = '$webhookUrl = "" #'; Value = "`$webhookUrl = $(Format-SingleQuoted $cfg_webhookUrl) #" }