WINS Replication Script
Automating the creation of WINS Replication partners can be accomplished with NETSH. This comes in handy in a scenario where you need to set up a replication partner at a remote location, and the local administrator does not have the expertise to configure the partner manually. Setting up this script is fairly straightforward by using the "add partner" command. Here is the syntax from the Microsoft help file:
add partner
Adds a replication partner to the list of replication partners on the specified WINS server.
Syntax
add partner [Server=]IPAddress [[NetBIOS=]ServerNetBIOSName] [[Type=]{0 | 1 | 2}]
Parameters
[ Server=] IPAddressRequired. Specifies the replication partner to add to the WINS server. Identifies the partner server by IP address.[ NetBIOS=] ServerNetBIOSNameSpecifies the replication partner to add to the WINS server. Identifies the partner server by NetBIOS name.[ Type=]{ 0| 1| 2}Indicates the type of partner to add: 0-Pull, 1-Push, 2-Both (default).Remarks
• If the IP address does not resolve, the NetBIOS name parameter is used to create the partner record. Otherwise, the NetBIOS parameter is not used.
Examples
In the following example, this command adds a push/pull replication partner with an IP address of 10.2.2.2 to the current WINS server.
add partner 10.2.2.2
For example, if I wanted to create a Push\Pull replication partnership with a server named Server1 that has 10.10.0.1 as an IP Address, the command would look something like this:
netsh wins server add partner 10.10.0.1 Server1 2
This information pertains to the following courses:




Reader Comments