Registry Query Batch

Author Message
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)
0
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
 
#1
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2013 ASPPlayground.NET Forum Version 3.9