From 2aa5f3918efb70bab4444db6001b6418fde48751 Mon Sep 17 00:00:00 2001 From: Riccardo Manfrin <3090891+riccardomanfrin@users.noreply.github.com> Date: Fri, 19 Jun 2026 22:30:05 +0200 Subject: [PATCH] Update public/docs-static/files/netbird-policy.reg.ps1 Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- public/docs-static/files/netbird-policy.reg.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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):