regedit /s opens regedit?

  • Thread starter Thread starter dylan.roehrig
  • Start date Start date
D

dylan.roehrig

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!
 
nevermind - evidently, i'm of below average intelligence and had
another line 2 lines up from that one that said just simply regedit /s

sorry for wasting anyone's time who read this.
 
In said:
nevermind - evidently, i'm of below average intelligence and had
another line 2 lines up from that one that said just simply
regedit /s

sorry for wasting anyone's time who read this.

We're all human.
Thanks for the follow-up, Might of saved someone years of toil and
research trying to find the answer. :-)
 
Back
Top