Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks

share|improve this question

1 Answer 1

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

 
discard

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.