regedit /s opens regedit?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

dylan.roehrig_at_gmail.com
Date: 02/23/05


Date: 23 Feb 2005 10:22:55 -0800

Hi, Thanks very much in advance for any help!

I have a login script for my users that adds a registry key to
hkey_current_user\software. The command in the script is

regedit /s PathToRegKeyFile

When the script runs, it shows the cmd window executing the script,
then when it gets to the regedit /s line, it displays only:

c:\regedit /s

and a regedit window opens. Upon closing the regedit window, the
c:\regedit /s changes to c:\regedit /s PathToRegKeyFile and the key is
added. How can I make the regedit window not open?

Thanks again!



Relevant Pages

  • Re: Login Script Problems
    ... am trying to get it to silently run a .reg file at logon im doing the ... WshShell.Run "regedit /s tif.reg" ... I cant remember off top of my head but when the logon script runs is ...
    (microsoft.public.scripting.vbscript)
  • Re: Login Script Problems
    ... am trying to get it to silently run a .reg file at logon im doing the ... WshShell.Run "regedit /s tif.reg" ... Is your logon script a batch file or a script file? ... wscript.echo "Running regedit" ...
    (microsoft.public.scripting.vbscript)
  • Re: Navigating The Registry
    ... But it will add a entry to the New sub menu for a New Registry Shortcut wizard. ... RegShortcut provides shortcuts to keys or values in the registry. ... If Regedit is already opened, the selection must be in the left hand pane for the correct key to open. ... to improve Ramesh's script. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Navigating The Registry
    ... But it will add a entry to the New sub menu for a New Registry Shortcut wizard. ... RegShortcut provides shortcuts to keys or values in the registry. ... If Regedit is already opened, the selection must be in the left hand pane for the correct key to open. ... to improve Ramesh's script. ...
    (microsoft.public.windowsxp.general)
  • Re: Login Script Problems
    ... am trying to get it to silently run a .reg file at logon im doing the ... WshShell.Run "regedit /s tif.reg" ... Is your logon script a batch file or a script file? ... wscript.echo "Running regedit" ...
    (microsoft.public.scripting.vbscript)