Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

windows smoke: keep the ordinary account's password to 14 characters

Claudeb3b83ae4bb21
diff --git a/packaging/windows/smoke-restricted-log.ps1 b/packaging/windows/smoke-restricted-log.ps1
index d75d32bb..1ae077a7 100644
--- a/packaging/windows/smoke-restricted-log.ps1
+++ b/packaging/windows/smoke-restricted-log.ps1
@@ -64,7 +64,9 @@ function Get-LogEvents {
return @(Get-Content -LiteralPath $log | Where-Object { $_.Contains($Marker) } | ForEach-Object { $_ | ConvertFrom-Json })
}
-$password = 'Bs1!' + [Guid]::NewGuid().ToString('N')
+# Fourteen characters at most: net.exe stops to ask "continue?" for a longer password, and with
+# no answer on stdin it fails without creating the account.
+$password = 'Bs1!' + [Guid]::NewGuid().ToString('N').Substring(0, 10)
$credential = [System.Management.Automation.PSCredential]::new(
$account, (ConvertTo-SecureString $password -AsPlainText -Force))