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" }