netsh/WINS Context |
Configures a WINS server.
Dumps the configuration of the WINS server as a series of NetShell commands.
Lists available WINS commands (more verbose than help ).
Enters the subcontext for the specified WINS server, which enables you to configure the WINS server using the add , check , delete , init , reset , set , and show commands. These commands and their options are summarized in Table 5-21.
Command | Option | Description |
---|---|---|
add | name | Registers name of WINS server |
partner | Specifies a replication partner | |
pngserver | Specifies persona non grata servers | |
check | database | Verify WINS database consistency |
name | Verifies a list of name records against specified servers | |
version | Verifies version number consistency | |
delete | name | Removes a registered name from database |
partner | Removes a replication partner | |
records | Removes or tombstones specified records | |
owners | Removes list of owners and their records | |
pngserver | Removes specified persona non grata servers | |
init | backup | Performs backup of database |
import | Imports an lmhosts file | |
pull | Sends a pull trigger to specified server | |
pullrange | Pulls specified records from specified server | |
push | Sends a push trigger to specified server | |
replicate | Replicates with replication partners | |
restore | Restores database from a file | |
scavenge | Initiates database scavenging | |
search | Searches database for specified server | |
reset | statistics | Resets server statistics |
set | autopartnerconfig | Configures automatic-replication partner- configuration settings |
backuppath | Configures backup settings | |
burstparam | Cnofigures burst-handling settings | |
logparam | Configures database and event-logging settings | |
migrateflag | Sets migration flag | |
namerecord | Configures interval and timeout settings | |
periodicdbchecking | Configures periodic database-checking settings | |
pullpartnerconfig | Configures settings for specified pull partner | |
pushpartnerconfig | Configures settings for specified push partner | |
pullparam | Configures default pull settings | |
pushparam | Configures default push settings | |
replicateflag | Sets replication flag | |
startversion | Specifies start version ID | |
show | browser | Displays active domain master browser |
database | Lists records in database | |
info | Displays configuration settings | |
name | Displays detailed info for a specified record | |
partner | Lists pull or push (or both) partners | |
partnerproperties | Displays default partner configuration | |
pullpartnerconfig | Displays configuration settings for pull partner | |
pushpartnerconfig | Displays configuration settings for push partner | |
reccount | Displays number of records owned by specified server | |
recbyversion | Displays records owned by specified server | |
server | Displays current WINS server | |
statistics | Displays statistics | |
version | Displays current version counter value | |
versionmap | Displays owner ID-to-maximum version number mappings |
Open a NetShell shell, and switch to the subcontext of a WINS server with IP address 172.16.11.104:
C:\> netsh netsh> wins wins> server \172.16.11.104 ***You have Read and Write access to the server 172.16.11.104***
Display configuration settings of WINS server:
wins server> show info WINS Database backup parameter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Backup Dir : Not Set Backup on Shutdown : Not Set Name Record Settings(day:hour:minute) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Refresh Interval : 006:00:00 Extinction(Tombstone) Interval : 004:00:00 Extinction(Tombstone) TimeOut : 006:00:00 Verification Interval : 024:00:00 Database consistency checking parameters : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Periodic Checking : Disabled WINS Logging Parameters: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Log Database changes in Jet.Log : Not Set Log details events to event log : Not Set Burst Handling Parameters : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Burst Handling State : Not Set
Display records in WINS server's database:
wins server> show database {172.16.11.104} Description of different fields in the Record Table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NAME = Name of the Record. Up to 16 characters T = Type of Record : D - Dynamic, S - Static S = State of the Record : A - Active, R - Released, T - Tombstoned VERSION = LowPart ( in Hex) G = Address Group : U - Unique, N - Group, I - Internet, M - Multihomed, D - Domain Name. IPADDRESS = List of IP Addresses associated with the Name. EXPIRATION DATE = Expiration Time Stamp for the Name Record. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NAME -T-S- VERSION -G- IPADDRESS - EXPIRATION DATE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Retrieving database from the Wins server 172.16.11.104 ??_ _MSBROWSE_ _?[01h]-D-A- 1 -N- 172.16.11.104 - 7/8/2000 3:40:31 PM MTITCANADA [1Bh]-D-A- 1f8 -U- 172.16.11.104 - 7/7/2000 8:57:56 AM IS~TEST [00h]-D-A- 2 -U- 172.16.11.104 - 7/8/2000 6:24:33 PM Total No. of records retrieved for server 172.16.11.104 : 3 Total No. of records displayed : 3 Command completed successfully.
Note that some WINS records may contain characters that can't be displayed, which are represented in the example by question marks.
WINS