From 320b2419422e01bc8c2914b93faa4a9819c13a64 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 13 May 2026 14:45:37 -0400 Subject: [PATCH] winpe-status-push: brace var names before colon (parser bug) PowerShell parses $var: as scope-namespaced syntax (e.g. $env:NAME, $global:foo). The line Log "server=$PxeServer:$Port pctype=$PCType" errored at line 26 col 13 - parser interpreted $PxeServer: as a scope prefix and bailed. Fix: use ${PxeServer}:${Port} so the colon is literal. The $uri line below already had the right form. Co-Authored-By: Claude Opus 4.7 (1M context) --- playbook/winpe-status-push.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook/winpe-status-push.ps1 b/playbook/winpe-status-push.ps1 index ba7051e..302b6a2 100644 --- a/playbook/winpe-status-push.ps1 +++ b/playbook/winpe-status-push.ps1 @@ -23,7 +23,7 @@ function Log { } Log "=== winpe-status-push start ===" -Log "server=$PxeServer:$Port pctype=$PCType" +Log "server=${PxeServer}:${Port} pctype=$PCType" # Serial via wmic. Always available in WinPE 10+. $serial = ''