Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to check the registry for the lookback check flag thus:

Test-Path HKLM:\System\CurrentControlSet\Control\Lsa\DisableLoopbackCheck

This always returns $false when in fact the value does actually exist. Ive tried -PathType leaf and -PathType Any with the same result.

Anyone got any ideas?


share|improve this question
up vote 1 down vote accepted

Isn't DisableLoobackCheck a property of HKLM:\System\CurrentControlSet\Control\Lsa?

You can test-path HKLM:\System\CurrentControlSet\Control\Lsa to see if that path exists, but you need to use Get-ItemProperty to inspect the properties the Lsa key.

I think this Test-PathReg script does what you want.

share|improve this answer
I tried Get-ItemProperty and that also failed but the linked script works wonderfully. Thanks!!! – Jonesie Dec 9 '10 at 23:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.