Author Topic: HKEY_CURRENT_USER want to use winbatch to run *.reg file  (Read 2708 times)

ed.lowe

  • Newbie
  • *
  • Posts: 1
HKEY_CURRENT_USER want to use winbatch to run *.reg file
« on: November 12, 2013, 02:00:49 pm »
I have a registry dump to go into the HKEY_CURRENT_USER area of a bunch of computers (Win 7) as a regular user, the dump is fine the way it is in the *.reg file. What is the easiest way to code a WBT program to load the REG file at the correct time in the program and ok the dialogs?
Sample code would be VERY appreciated, i am somewhat of a new user.

Thanks
Ed

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: HKEY_CURRENT_USER want to use winbatch to run *.reg file
« Reply #1 on: November 12, 2013, 02:49:03 pm »
Depending on the registry keys you might need administrative account to handle this. You also may want to run this script as 64-bit.

Regedit.exe supports a /s command-line switch to not display these messages. For example, to silently run the .reg file (with the /s switch) from a login script, use the following syntax:

Code: Winbatch
Run('regedit.exe', '/s "c:\path\of \my.reg"')
 

Use at your own risk. Always make sure to keep backups of the registry.

Reference: http://support.microsoft.com/kb/310516
Deana F.
Technical Support
Wilson WindowWare Inc.