VBscript that will open up regedit for me and let me cross check the values that should be there or not and simillarly files at some locations as well as those are correct with version and naming.

I want to want to avoid manual clicks in regedit, want to dorectly go to that particular registry.

 

 

0 Comments   [ + ] Show Comments

Comments

  • This content is currently hidden from public view.
    Reason: Member has been banned from the site
    For more information, visit our FAQ's.
Please log in to comment

Answers

2

this maybe what you're looking for

http://stackoverflow.com/questions/137182/how-to-launch-windows-regedit-with-certain-path

i would generally do something like the following for checking machines for a registry using psexec where Computers.txt would contain the list of machines i need to check

C:\psexec @computers.txt -c regcheck.bat

Regcheck.bat

@echo off

setlocal

set regpath=HKLM\

set regvalue=

set regdata=

reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%"

if errorlevel 0 GOTO FOUND

Echo %Computername% Registry Not Found >> <text file>

:FOUND

Echo %Computername% Registry Found >> <text file>

Answered 08/12/2013 by: sparky86
Fourth Degree Brown Belt

  • Hey thanks for the reply but i am looking for easy method to open regedit, which will open a location which matches my keyword value..no manual openings
  • I hv found Reg query function but its not working well ....??
    • can you explain what is not working well in the reg query funciton
      • Coudnt able to launch a valid query through it so getting error message every time invalid input,,please suggest
  • Can you explain in detail the query used so that something can be suggested on it. Also how are you testing the query.
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share