Thank you for responding, but I just figured it out. I basically have this where I am checking to see if a registry value is set to 1 or 2, but nothing else.
for /f "tokens=3" %%a in ('reg query "HKLM\blah" /v RegValue" ^| find /i "RegValue"') do set leq2test=%%a
If %leq2test% LEQ 2 (set test1="Pass") ELSE (set test1="Fail")
?for /f "tokens=3" %%b in ('reg query "HKLM\blah" /v RegValue" ^| find /i "RegValue"') do set geq1test=%%b
If %geq1test% GEQ 1 (set test2="Pass") ELSE (set test2="Fail")
If test1 == test2 (Echo Pass) ELSE (Echo Fail)
It might not be the best way to do it, but it works!
Now I just need to figure out how to check to see if the Lockout Threshold is not 0, but less that 3. I know that I can view it with the net accounts command, but dont know how to use it for this case.
Thanks!