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\Curre ntVersion\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.
Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.
"dak" <dak@discussions.microsoft.com> wrote in message
news:2A9163A2-8D88-4217-B35E-D08460F84EC1@microsoft.com...
>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\Curre ntVersion\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.
"dak" <dak@discussions.microsoft.com> wrote in message news:2A9163A2-8D88-4217-B35E-D08460F84EC1@microsoft.com...
> 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\Curre ntVersion\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.
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" wrote:
>
> "dak" <dak@discussions.microsoft.com> wrote in message news:2A9163A2-8D88-4217-B35E-D08460F84EC1@microsoft.com...
> > 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\Curre ntVersion\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
>
>
>
>
>
"dak" <dak@discussions.microsoft.com> wrote in message news:EE337655-0F31-4B33-8580-C36D998D991F@microsoft.com...
> 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.
>
"dak" <dak@discussions.microsoft.com> wrote in message
news:2A9163A2-8D88-4217-B35E-D08460F84EC1@microsoft.com...
>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\Curre ntVersion\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.