How to eliminate prompt when run a .reg file?

  • Thread starter Thread starter Vanguard \(NPI\)
  • Start date Start date
V

Vanguard \(NPI\)

I need to add a .reg file into my startup. However, an intervening (and
interferring) user prompt appears when the .reg file is loaded before it
will actually perform the save of the changes listed within it. Is there
anyway to get rid of this prompt?
 
Yes, with the 'regedit /s' syntax.

Example: regedit /s file.reg
 
Jon said:
regedit /s somekindofregfile.reg


That worked. Great! Thanks. I can now add the command line to the Startup
folder as a shortcut to have it load the settings on each startup.

Group policy had the screen saver activate after only 15 minutes. I have
multiple hosts in my cubicle and would miss e-mail alerts, some critical,
along with program output to check status. They wouldn't change group
policy for my account but did give me admin rights to my host so I could
make the changes with a .reg file (after finding the user and policy
settings in the registry to export and edit). I wanted to add the .reg file
to my Startup folder to undo their policies. They know I'm doing this and
understand why but cannot or will not set the policy different for my
account (I'm a contract worker so they probably don't want to make changes
just for me).

I had shortcuts in the QuickLaunch toolbar (one to disable and another to
restore) but I like having them loaded on Windows startup so I don't have to
remember when I notice the screen saver kick in.
 
Regedit /s <file name>.reg
SET: How to Suppress Registry Editor Dialog Window
http://support.microsoft.com/default.aspx?scid=kb;en-us;161993

[[Regedit.exe supports a /s command-line switch to not display these
messages.]]
How to add, modify, or delete registry subkeys and values by using a
registration entries (.reg) file
http://support.microsoft.com/default.aspx?scid=kb;en-us;310516

The /e switch is used for exporting.
[[Regedit /e File_Name.reg KeyExports the registry key specified in Key and
all sub keys and values to the file specified in File_Name.reg. The Key must
exist, and must be fully typed out. For example you must type out
HKEY_LOCAL_MACHICE, you cannot use the abbreviation HKLM.]]
http://www.dragon-tech.net/tips/intermediate/Regedit.html

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Vanguard said:
That worked. Great! Thanks. I can now add the command line to the Startup
folder as a shortcut to have it load the settings on each startup.

Group policy had the screen saver activate after only 15 minutes. I have
multiple hosts in my cubicle and would miss e-mail alerts, some critical,
along with program output to check status. They wouldn't change group
policy for my account but did give me admin rights to my host so I could
make the changes with a .reg file (after finding the user and policy
settings in the registry to export and edit). I wanted to add the .reg file
to my Startup folder to undo their policies. They know I'm doing this and
understand why but cannot or will not set the policy different for my
account (I'm a contract worker so they probably don't want to make changes
just for me).

I had shortcuts in the QuickLaunch toolbar (one to disable and another to
restore) but I like having them loaded on Windows startup so I don't have to
remember when I notice the screen saver kick in.
Cool. Cutting through the reg tape (or something like that)

Jon
 
Back
Top