P
Patrick
Our network is having an issue with elections for a master
browser. to rule out the desktop pcs we are going to send
a "net stop browser" command to all PCs. after that we
would like to diable the Computer Browser Service with a
script.
The script I've created changes the registry entry to
disable the service. I've debugged it in Primal Script 3.0
and it returned no errors. When I test it on a machine, it
fails to change the registry entry. Altiris returned an
error 193 - needs reboot.
My question is: how do I change the registry entry for the
service without rebooting the machine.
Script:
Option Explicit
Dim WshShell
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\B
rowser\Start", "4", "REG_DWORD"
browser. to rule out the desktop pcs we are going to send
a "net stop browser" command to all PCs. after that we
would like to diable the Computer Browser Service with a
script.
The script I've created changes the registry entry to
disable the service. I've debugged it in Primal Script 3.0
and it returned no errors. When I test it on a machine, it
fails to change the registry entry. Altiris returned an
error 193 - needs reboot.
My question is: how do I change the registry entry for the
service without rebooting the machine.
Script:
Option Explicit
Dim WshShell
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\B
rowser\Start", "4", "REG_DWORD"