john3j04
-
Total Posts
:
7
- Scores: 0
-
Reward points
:
750
- Joined: 7/11/2012
-
Status: offline
|
Registry Query Batch
Wednesday, July 11, 2012 2:39 PM
( permalink)
Hello, I am new to the forum and I was hoping that someone could help me figure this out. I am not sure whether a for statement or an if/then/else statement should be used, but I am trying to write a batch file that I could reuse the code on when evaluating several areas of the registry through a batch file. I would really only need one variable that was just set to something new each time it is come across in my batch file, but I was trying to take the value "MinimumPasswordAge" from "HKLM??\System\CurrentControlSet\Services\Netlogon\Parameters", assign it to a variable, and if the value was greater than or equal to 30, then it should echo Pass. If it does not meet that criteria, then it should echo Fail and continue through the rest of the batch file. I would appreciate any advice and help on this! Thanks, John
|
|
|
|