ReReading Windows registry

D

dak

I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after setting
this value, so that the change becomes effective without having to reboot the
computer.
 
D

Dave-UK

dak said:
I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after setting
this value, so that the change becomes effective without having to reboot the
computer.

One way would be to close and then restart Explorer.

taskkill /F /IM “explorer.exeâ€
explorer
 
D

dak

Thanks.

That will work. But Microsoft must be doing something else. If I go thru the
GUI and customize the Start Menu, when I click OK it is automactically
updated.

Dave-UK said:
dak said:
I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after setting
this value, so that the change becomes effective without having to reboot the
computer.

One way would be to close and then restart Explorer.

taskkill /F /IM “explorer.exeâ€
explorer
 
D

Dave-UK

dak said:
Thanks.

That will work. But Microsoft must be doing something else. If I go thru the
GUI and customize the Start Menu, when I click OK it is automactically
updated.


How about using the F5 (refresh) key's function?
 
J

Jon

dak said:
I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after
setting
this value, so that the change becomes effective without having to reboot
the
computer.


Sometimes, if you can locate a suitable api function to use - which I
confess I don't know in this case - a refresh is built into the actual
command.
 

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