diff --git a/public/docs-static/files/netbird-policy.reg.ps1 b/public/docs-static/files/netbird-policy.reg.ps1 index 011d706d..6e67a4b3 100644 --- a/public/docs-static/files/netbird-policy.reg.ps1 +++ b/public/docs-static/files/netbird-policy.reg.ps1 @@ -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):