modifying key data in batch file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi - is it possible to change the Value Data in a Registry Key using a batch file? If so, what should be in the batch file? If not, is there another way to automate making the modification

Thanks
 
In said:
Hi - is it possible to change the Value Data in a Registry Key
using a batch file? If so, what should be in the batch file? If
not, is there another way to automate making the modification?

Two methods used frequently. Merge a .reg file using regedit.exe.
regedit.exe /s path\regfile.reg
Work "live" using reg.exe (in the Support Tools).
reg.exe <arguments>

Say more. Such as what account type will use it and what registry
location is to be modified. Registry Permission and/or locked areas
may come into play.
 
In said:
Hi - is it possible to change the Value Data in a Registry Key
using a batch file? If so, what should be in the batch file? If
not, is there another way to automate making the modification?

Two methods used frequently. Merge a .reg file using regedit.exe.
regedit.exe /s path\regfile.reg
Work "live" using reg.exe (in the Support Tools).
reg.exe <arguments>

Say more. Such as what account type will use it and what registry
location is to be modified. Registry Permission and/or locked areas
may come into play.
 
Pixel said:
It would have to be a batch file run by a local user with administrator priviledges. It is meant to change the Server data value in several ODBC Data Sources on each computer. Rather than have them go into Administrative Tools or edit the registry themselves they would just run the batch file.

Hi

If the users aren't local administrators:


If you have Active Directory:

You could do it in a computer startup script (with a GPO) that runs as
part of the boot up process (before the user logs in). It runs under the
system context and has admin rights.

In this setting, using a VBScript to do the registry edits is the best
solution because you then would not need to access any external files.


If you don't have Active Directory:

Some Runas wrapper utilities or alternatives that might help you:

http://groups.google.com/[email protected]
 
Pixel said:
It would have to be a batch file run by a local user with administrator priviledges. It is meant to change the Server data value in several ODBC Data Sources on each computer. Rather than have them go into Administrative Tools or edit the registry themselves they would just run the batch file.

Hi

If the users aren't local administrators:


If you have Active Directory:

You could do it in a computer startup script (with a GPO) that runs as
part of the boot up process (before the user logs in). It runs under the
system context and has admin rights.

In this setting, using a VBScript to do the registry edits is the best
solution because you then would not need to access any external files.


If you don't have Active Directory:

Some Runas wrapper utilities or alternatives that might help you:

http://groups.google.com/[email protected]
 
In said:
It would have to be a batch file run by a local user with
administrator priviledges. It is meant to change the Server data
value in several ODBC Data Sources on each computer. Rather than
have them go into Administrative Tools or edit the registry
themselves they would just run the batch file.

If they are already adminstrators importing (merging) a .REG file may
be easiest for local application of the changes. But see Torgeir's
post too.

On the topic of keys and values for ODBC I am not your man. :-)
 
In said:
It would have to be a batch file run by a local user with
administrator priviledges. It is meant to change the Server data
value in several ODBC Data Sources on each computer. Rather than
have them go into Administrative Tools or edit the registry
themselves they would just run the batch file.

If they are already adminstrators importing (merging) a .REG file may
be easiest for local application of the changes. But see Torgeir's
post too.

On the topic of keys and values for ODBC I am not your man. :-)
 
Back
Top