Update public/docs-static/files/netbird-policy.reg.ps1

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Riccardo Manfrin
2026-06-19 22:30:05 +02:00
committed by GitHub
parent 1e6a964f32
commit 2aa5f3918e

View File

@@ -85,7 +85,11 @@ if ($LASTEXITCODE -ne 0) {
# Audit dump so the JumpCloud per-execution log captures the applied state.
Write-Host "[netbird-mdm] final policy state under $RegKey :"
& reg.exe query $RegKey /s
if (Test-Path "Registry::$RegKey") {
& reg.exe query $RegKey /s
} else {
Write-Host "[netbird-mdm] no policy values present under $RegKey"
}
# Daemon's 1-min reload ticker picks up the change automatically.
# Uncomment to force immediate convergence (skips the ticker wait):