SEND US YOUR TIPS AND QUESTIONS.
You can also visit Bob Chronister's online Tricks & Traps at http://www.winntmag.com/ forums/index.html.
A friend recently asked me to troubleshoot a software upgrade. She was running Microsoft Excel 5.0, WordPerfect 6.0, Lotus SmartSuite, and Windows 3.1 on top of PC-DOS, and she wanted to upgrade to Windows 98. She employed a Microsoft-certified guru (i.e., a Microsoft Certified ProfessionalMCP) to perform the upgrade. The guru had no idea how to upgrade a PC-DOS system to Win98, so he called Microsoft for help. After he converted my friend's system to regular DOS, he performed the Win98 upgrade without a problem. However, he couldn't get WordPerfect 6.0 to load on the upgraded system and had to install Corel WordPerfect 8.0. He also had trouble loading Excel; the program told him he needed to load the share utility. When the guru told my friend he needed to research the share problem and would get back to her, she called me in frustration. I recognized the problem's cause immediately: Excel 5.0 requires that you load the DOS utility share.exe during the boot process. I upgraded my friend's system to Microsoft Office 97 because it doesn't require you to load the share utility. Her system now runs fine. The process took 15 minutes. The moral to this story is simple: Microsoft needs to make hands-on experience a certification requirement.
Q: I'm concerned about eliminating static mappings in my WINS database. One of my primary concerns is shutting down replication while I remove the mappings. How can I avoid stopping replication?
In general, you use static mappings only for clients that can't register with the WINS database. However, I've used static mappings when I set up trust relationships and I didn't want to deal with LMHOSTS files. The problem with removing static mappings is that you must usually stop the WINS server. (Using the Migrate On feature in WINS Manager doesn't require stopping replication, but this feature might not remove all static entries.)
To eliminate static mappings, you can use one of two methods that don't require you to stop WINS replication on your network. Both methods require a Registry change on all WINS servers.
The first method uses a new, temporary WINS server. To remove static entries, perform the following steps.
- Install a new WINS server on your network. This server will contain only static mappings, and no clients will register with the server.
- Find and record all the static entries, including NetBIOS names and record types, that you want to delete from all WINS servers.
- Add each of the entries from Step 2 as static entries on the WINS server that you created in Step 1.
- Configure the new WINS server to replicate the static entries to all other WINS servers. (Ensure that the replication occurs on a WINS server that reaches all other WINS servers.)
- Using WINS Manager's Mappings menu, delete all the static mappings at all the original WINS servers.
- After the static entries fully replicate, edit the Registry on all production WINS servers. (As always, edit the Registry carefully.)
- Start a Registry editor, and go to the HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\WINS\
Partners Registry key.
- Select Add Value from the Edit menu, and use the following parameters: Value Name is PersonaNonGrata, Data Type is REG_MULTI_SZ, and Data is the IP address of the new WINS server you created in step 1 (The PersonaNonGrata Data field has a limit of 99 IP addresses. IP addresses beyond 99 will probably prevent the WINS service from starting. The default is none.)
- After enabling the value, stop and restart the WINS service. This Registry value specifies the IP addresses of WINS servers whose records the local database shouldn't receive during replication.
- After adding the PersonaNonGrata Registry value and restarting the WINS service, you must perform the following steps on all WINS servers except the WINS server you created in step 1.
- Using WINS Manager, select Show Database from the Mappings menu.
- Click the new WINS server in the Select Owner list.
- Click Delete Owner to delete all the records the new WINS server owns.
The Registry change you made prevents the replication of entries back before the new WINS server deletes the entries from the other WINS servers. You can then remove from replication the WINS server you created in step 1 and disable or remove the WINS service.
The second method uses the ConsistencyCheck Registry key. If you want to use this method, all your WINS servers must run Windows NT Server 4.0. The method uses a lot of bandwidth and is inappropriate for slow WAN links. To use this method, perform the following steps.
- Delete the static mapping from the owning WINS server.
- Before the next replication, perform a consistency check by using winscl
.exe from the Microsoft Windows NT Server 4.0 Resource Kit or by using the ConsistencyCheck Registry key.
- Under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\WINS\Parameters Registry key, you can create the ConsistencyCheck subkey if you want WINS to periodically perform database consistency checks. Use the following values: Value Name is MaxRecsAtATime, Data Type is REG_DWORD, and Range is 1000 to the total number of records (decimal; default is 30000).
The ConsistencyCheck subkey stipulates the maximum number of records that will replicate in one cycle. WINS performs consistency checks on the records of each owner WINS server (i.e., the WINS servers that own the replicated records). After checking an owner WINS server, the local WINS server either continues to the next owner WINS server or stops. The local WINS server determines this process by the MaxRecsAtATime value.