Information Technology Reference
In-Depth Information
To access the netsh interface for the local server, open a command prompt and issue the
following commands, either one per line or all on a single line:
> netsh
> wins
> server
You can also connect to other WINS servers by appending the IP address or the server
name to the third line, like this:
> server 10.0.0.2
or this:
> server \\WINS1
Additionally, you can view the full syntax of the netsh wins commands by appending /? at
the end of any statement. For example, netsh wins server /? will bring up the detailed syntax
of this command.
Only administrators on the WINS server are able to modify WINS settings through netsh
wins . If you want to provide a user with read-only access to WINS via netsh wins , add the user
to the server's WINS Users group.
Using the Registry
There are a number of entries in the Windows Registry that will allow you to modify parameters
needed to configure WINS, with the exception of replication-related parameters. All entries are
located at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wins\Parameters
We provide the usual warning when editing the Registry: do so with care. Modifying the
Registry incorrectly can leave your server in an unusable state.
Using VBScript
Unfortunately, there is not a built-in scripting interface through which to administer WINS at
the server level. However, you can call the netsh wins command-line functions from a VBScript
using the following syntax:
' This code will instantiate a WSH object and execute the desired command.
' ------ SCRIPT CONFIGURATION ------
' Enter the desired netsh wins command between the quotation marks,
' as in the example below
strCommand = "netsh wins server init scavenge"
' ------ END CONFIGURATION ---------
set objShell = CreateObject("WScript.Shell")
set objExec = objShell.Exec(strCommand)
' Run in a loop while the command is executing
Search WWH ::




Custom Search