From 33715e32caa4862fc13d7c6709ccf5ba55318444 Mon Sep 17 00:00:00 2001 From: dodexahedron Date: Sun, 23 Aug 2026 07:26:21 -0700 Subject: [PATCH] Fix error in powershell script in authority-information-access-retrieval.md The powershell snippet in this document used the wrong variable name in the switch statement (`$value`), making it never work propertly. Fixed by changing it to `$regCheck`. --- .../security/authority-information-access-retrieval.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowsServerDocs/security/authority-information-access-retrieval.md b/WindowsServerDocs/security/authority-information-access-retrieval.md index fcb78c711c..4291fbd5c5 100644 --- a/WindowsServerDocs/security/authority-information-access-retrieval.md +++ b/WindowsServerDocs/security/authority-information-access-retrieval.md @@ -103,7 +103,7 @@ $propertyName = "Options" try { $regCheck = (Get-ItemProperty -Path $registryPath -Name $propertyName -ErrorAction Stop).$propertyName - switch ($value) { + switch ($regCheck) { 0 { "AIA is Enabled" } 2 { "AIA is Disabled" } default { "Unexpected value: $regCheck" }