regedit /s opens regedit?

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!
 
D

dylan.roehrig

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.
 
M

Mark V

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. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top