NT*Pro

World's First NT Group

Tech Tips

A monthly feature of the NT*Pro Newsletter. These are some of the most recent tips published in the newsletter.
  1. SET YOUR SYSTEM CLOCK
  2. NT LOCKSMITH AND NT RECOVER
  3. COMMAND LINE ENHANCEMENTS IN NT 4.0
  4. CHANGE FILENAME ASSOCIATIONS FROM THE COMMAND LINE
  5. NT 4.0 EASTER EGG
  6. USE NTFS FOR OTHER OPERATING SYSTEMS
  7. CREATE USER TEMPLATES
  8. MONITOR WEB SERVER PERFORMANCE
  9. REGCLEAN 4.1
  10. UNATTENDED, CUSTOMIZED INSTALLATIONS
  11. GET RID OF THAT ANNOYING RECYCLE BIN
  12. FASTER FLY-OUT MENUS IN NT 4.0
  13. WHERE DID THE TASK LIST GO IN NT 4.O?
  14. MANUALLY DELETE A SERVICE IN NT
  15. ENABLING WINS PROXY IN NT 4.0 FOR NON-WINS CLIENTS
  16. HIDE MACHINES FROM THE BROWSE LIST
  17. REMOTELY SHARE DIRECTORIES IN NT 4.0
  18. DISABLING THE TIMER FOR NT BOOT LOADER
  19. SAVING WIN NT 4.0 ADDRESS BOOK ON RE-INSTALL
  20. Hide the Last Logon User ID
  21. Increase Security With Smart Use of Passwords
  22. Use Sharing Selectively
  23. To Enable NT's Auditing
  24. TCP/IP & IPX Routing Tutorial
  25. Unattended Installation of NT
  26. Simple Security Tips for Windows NT Server
  27. Formatting a NTFS disk to FAT
  28. Connecting two workstations without a hub
  29. The '=' at the end of message lines
  30. NT 4.0 Control Panel Tips
  31. NT 4.0 Disaster Recovery Tips
  32. Nagging Prompt For File Location
  33. Stopping CD Autorun in NT 4.0
  34. Move All NT Files To New Hard Disk
  35. Detect PC Systems Components Prior To NT Install
  36. Private Network IP Addresses
  37. Autosearch In IE 3.0
  38. Do you know how TCP/IP works???
  39. Create An Icon For The Registry Editor (REGEDIT32)
  40. Connect To MSN PPP Server With Windows NT
  41. To Display A Warning Or Info Message At Logon
  42. Enable Automatic Logon In Windows NT
  43. Systematic Approach To Performance Management
  44. Routing Between Multi-Protocol Networks
  45. Retoring Registry Settings After New Peripheral Installation
  46. Disable Dual-Boot Loader Timer
  47. Shortcuts For Windows NT Services
  48. Install Almost Any Executable As A Service
  49. Static IP Address Problems
  50. Command Line Tips
  51. Increase Number Of MRU Network Connections Shown
  52. Use TCP, IP, ICMP & UDP Counters In Perfmon
  53. Force Screen Saver To Start During Logon
  54. Licensing Mode Identification
  55. Reports On Groups,Users, & Permissions
  56. PPP Log File Creation

WARNING !!!
WARNING : Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Use this tool at your own risk.





SET YOUR SYSTEM CLOCK


If you have a computer with an unreliable clock, you can use your LAN to correct it. At the command prompt, type:

NET TIME \\computername /SET /YES

The clock on your computer will be set the same as the one on .


NT LOCKSMITH AND NT RECOVER


NT Recover allows system administrators to access and modify drives on dead x86 NT systems using a serial connection to another NT machine. Salvage data using native NT commands and utilities, add, delete or rename drivers or other OS files, or even run chkdsk on the dead system's drives.

NT Locksmith "picks the lock" on machines when you've lost the administrative password. Allows you to specify a new password for any account on the system, including the administrative, in less than 20 minutes. NT Locksmith requires NT Recover. Both utilities can be ordered from http://www.winternals.com

NT Locksmith and NTFSDOS (see last month) both demonstrate the limitations of NT and NTFS security. NT is a very secure operating system as long as NT is running. If an intruder can reboot your system to MS-DOS from a floppy disk, you have no security at all. This is so important I'll repeat it. IF AN INTRUDER CAN REBOOT YOUR SYSTEM TO MS-DOS FROM A FLOPPY DISK, YOU HAVE NO SECURITY AT ALL. That is why a locked room is crucial to any secure computer facility. This is true no matter what operating system you are running; UNIX, OS/2, or any other operating system can only provide security while it is actually running.


COMMAND LINE ENHANCEMENTS IN NT 4.0


NT 4.0 provides a number of command line enhancements. Some of the most useful follow:

CD /D changes the current directory and current drive at the same time. As an example, assume that my current drive is D: and my current directory on C: is the root directory. If I type CD /D c:\downloads, my current drive will become C: and the current directory on C: will become C:\downloads.

MD can now create multiple levels of directory in a single command. Assume I have no directory called C:\jim. If I type MD C:\jim\fred, NT will create a directory called \jim and then create another directory in \jim called fred.

RD /S does a complete tree delete. RD /S \jim will remove directory \jim, even if there are sub-directories or files in \jim.

DEL /S can delete in sub-directories. For example, DEL /S *.TXT will delete all text files in either the current directory or any sub-directory of the current directory.

FOR /D - Makes wildcards match directory names instead of filenames.

FOR /R - Walks the directory rooted at , executing the FOR command in each directory of the tree.

FOR /L - Equivalent to a BASIC FOR/NEXT loop.

In addition, access to FOR variable references has been enhanced. If you write batch files, run HELP FOR from the command line to see all the new features of this command.

To see the complete list of commands that have been enhanced in NT 4.0, enter CMD /? on a command line.


CHANGE FILENAME ASSOCIATIONS FROM THE COMMAND LINE


Another command line tip is the use of the ASSOC command. To change a filename association, run ASSOC as follows:

ASSOC [.ext[=[filetype]]]

.ext specifies the file extension the file should be associated with. filetype specifies the filetype to associate with the extenstion.

ASSOC with no parameters displays a list of file associations. ASSOC with just an extension displays the current association of the extension. ASSOC with an extension and equals but no filetype deletes the association.

See HELP ASSOC for more details.


NT 4.0 EASTER EGG


To see the names of the Windows NT 4.0 developers, click on the desktop and select properties. Go to the Screen Saver tab, and select the OpenGL 3D Text screen saver. Click the Settings button, and enter "not evil" as the text. You will see a display of the Windows NT 4.0 development team. To see a list of volcanoes instead, enter "volcano" as the screen saver's text.


USE NTFS FOR OTHER OPERATING SYSTEMS


Normally, Windows NT's high-performance file system is inaccessible from Windows 95, Windows 3.x, and DOS. However, a nifty new driver lets those three operating systems read NTFS partitions. If you ever need a data file from an NTFS partition but are unable to boot NT, you can use NTFSDOS to retrieve an otherwise inaccessible file.

Mark Russinovich and Bryce Cogswell have a great web site and a lot of handy utilities. One of my favorites is NTFSDOS.

For more information and to download NTFSDOS, visit the NT Internals Web site: http://www.ntinternals.com/


CREATE USER TEMPLATES


This is pretty simplistic, but a lot of people don't realize how handy it is. Adding lots of new users to your network can be tedious. Creating a user template makes it easy to add multiple new users with the same group and access privileges.

1. Open the User Manager for Domains.
2. Add a new user by selecting User/New User from the menu bar.
3. Label this user as a template for the user level, such as Template--Worker or Template--Secretary.
4. Set the proper configuration option for Groups, Profile, and Dial-in.
5. The next time you need to add a user, simply select the template account and select User/Copy from the menu bar. NT makes a duplicate of the template user, so to complete the new user account setup, all you need to do is change the name and password.


MONITOR WEB SERVER PERFORMANCE


When you install IIS on NT 4.0 Server (or Personal Web Server on NT 4.0 Workstation), the software adds its own monitoring entries to the Windows NT Performance Monitor. To access these new monitoring devices:

1. Launch the Performance Monitor from the Start button's Programs/Administrative Tools menu.
2. Select Edit/Add to Chart.
3. Select ftp, Gopher, http, and/or IIS from the Object pick list.


REGCLEAN 4.1


When you install, uninstall, and reinstall programs on your computer, registry keys are created, modified, and/or deleted. Over time, your computer's registry may begin to contain corrupted, unused, and unnecessary registry keys, especially if keys are not removed when you uninstall a program. As a result, you may begin to experience problems when using OLE to embed objects or Automation to control other programs.

The RegClean utility is designed to clean up unnecessary registry entries in your registry. RegClean 4.1 can be downloaded from: http://www.microsoft.com/kb/articles/q147/7/69.htm


UNATTENDED, CUSTOMIZED INSTALLATIONS


You can deploy customized installations throughout your organization using the tools in the Windows NT Workstation version 4.0 or Windows NT Server version 4.0. These tools include unattended setup (greatly expanded from the UNATTEND.TXT functionality in earlier versions of Windows NT), and the new sysdiff utility.

For example, you can install Windows NT Workstation and Windows NT Server throughout your organization - complete with the applications your end users need, organization- specific help files, and per-computer settings such as computername and user name. Unattended setup lets a handful of technicians deploy the new operating systems, without disrupting your end users' work day.

The sysdiff utility is used to prepare "snapshots" of the operating system before and after applications are installed. When the final snapshot (the "difference" file) is applied during or after Windows NT Setup, all the changes you made to the master system by installing applications (registry settings, binary files - everything) are copied to the new installation. Or you can use sysdiff to create an INF from the difference file, and use the INF to install the applications during or after Windows NT Setup. This lets you include in your customized installation applications that do not have a scripted setup.

You can also use sysdiff with unattended setup to create "spare" hard disks with the operating system and the applications pre-installed, ready to replace crashed disks in mission-critical computers.

Unattended setup and sysdiff are described in Part 1, "Windows NT Workstation Deployment," of the Windows NT Workstation Resource Guide. A printed version of the Resource Guide is included with the Windows NT Workstation Resource Kit, and the Windows NT Server Resource Kit includes an online version of the Windows NT Workstation Resource Guide.

** NOTE ** See the NT*Pro web site (http://www.ntpro.org) to download a self-extracting Word file entitled the "Automating Microsoft Windows NT Setup Deployment Guide."

OEMs can use unattended setup and sysdiff to pre-install Windows NT Workstation or Windows NT Server, complete with applications. You can ship computers that will display the GUI-mode Setup - with your own logo, banner, and background the first time the computer is started. See the OEM Preinstallation Kit for Microsoft Windows NT Operating Systems for details.


GET RID OF THAT ANNOYING RECYCLE BIN


The Recycle Bin may be more of a pain that it is worth having around, especially if you delete files often. Here is how you can disable it so all files a truly deleted when you delete them.

1. Right-click on the Recycle Bin icon and then click on PROPERTIES.
2. You will then see tabs for each accessible drive, plus a global tab. You will also see a check box to disable the Recycle Bin, causing files being deleted to actually be deleted.
3. Choose the drive you want, or the global setting, and choose the option to delete instead of sending files to the Recycle Bin.

NOTE - There is a sliding control which allows you to set the percentage of your disk which is used for the Recycle Bin, if you choose to leave the Recycle Bin enabled.

NOTE2 - You can also just hold down the shift key while deleting files to bypass the Recycle Bin and permanently delete files.


FASTER FLY-OUT MENUS IN NT 4.0


For faster fly-out menus, go to HKEY_CURRENT_USER in the Registry. Go to Control Panel, Desktop, MenuShowDelay and change it to 1.


WHERE DID THE TASK LIST GO IN NT 4.O?


For the old CTRL+ESC Task List, go to HKEY_LOCAL_MACHINE in the Registry. Click on Software, Microsoft, Windows NT, CurrentVersion, WinLogon. Click on Edit, Add Value. Type Taskman for Value Name and click OK. Then type TASKMAN.EXE in the String Editor.


MANUALLY DELETE A SERVICE IN NT


Evals and test software often leave residue services on your NT machine. To rid yourself of these un-needed services, go to the registry, find HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services Just find the service there and delete. You can also look at the keys and see what files the service was using and delete them also. You will have to reboot before the list gets updated.


ENABLING WINS PROXY IN NT 4.0 FOR NON-WINS CLIENTS


In Windows NT 3.5x there used to be a check-box under TCP/IP settings allowing you to enable the WINS Proxy agent so your non-WINS enabled clients could still use WINS for Netbios name resolution. This check box is gone in NT 4.0. To enable this in NT 4.0, open the following registry key: HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Netbt/Parameters Change the value for EnableProxy to 0x1.

Description of WINS Proxy Agent: A Windows NT machine with the WINS Proxy Agent enables answers to broadcast queries from other TCP/IP machines on your local network that are not WINS enabled. It is recommended that only two Windows NT machines per network be enabled for WINS Proxy Agent.


HIDE MACHINES FROM THE BROWSE LIST


If you don't want a particular server to show up on your network's browse list, modify the following the registry key and it will be invisible!!! Open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters From the Edit menu, choose Add Value and type: Hidden. In the Data Type field, choose REG_DWORD adn choose OK. In the Data field, type 1 to enable hiding (0 makes it visible again) and choose OK.


REMOTELY SHARE DIRECTORIES IN NT 4.0


With Windows NT 3.51 you able to share directories on remote Windows NT machines . There is also a way to do this in NT 4.0. There is a utility in the Windows NT 4.0 Resource Kit called ShareUI. Right click on Shareui.Inf and choose install. Now when you look at a remote server there will be folder called "shared directories" which will allow you, given appropriate permissions, the ability to remotely share a directory.


DISABLING THE TIMER FOR NT BOOT LOADER


When your Windows NT system is set up in a dual-boot configuration, the Windows NT boot loader is set to display a menu of operating system choices (usually MS-DOS and Windows NT), wait 30 seconds for input, and then start Windows NT if you fail to provide any input. If you want to boot to the other operating system but get distracted before you get a chance to make a selection, you have to reboot and try again. Of course, you can increase the value in the Show List For text box in Control Panel's System dialog box, but you'll still have the same problem if the timer counts down before you make a choice.

Fortunately, you can disable the boot loader's timer so that the menu of operating system choices remains on the screen until you make a choice. To do so, you have to edit the BOOT.INI file and change the timeout value. However, before you can do so, you have to turn off BOOT.INI's Read-Only attribute.

Once you do, open the BOOT.INI file in Notepad and change the timeout value from timeout=30 to timeout=-1

Then, save the file and reboot your system. It's important to note that you can't make this change in the Control Panel's System dialog box because only values from 0 to 999 are valid in the Show List For text box.

NOTE - Remember to turn BOOT.INI's Read-Only attribute back on!


SAVING WIN NT 4.0 ADDRESS BOOK ON RE-INSTALL


If you should need to re-install your system, you typically have to re- install the latest version of Internet Explorer 3.x and it's companions, Internet Mail & News. Most of the time this means re-typing your e-mail addresses, which, for some, could prove to be time consuming and laborious.

For NT 4 users the complete address book file is located in "%SystemRoot%\username.wab." You can move this file to wherever you want to keep it (say a partition that never gets deleted, or back it up on floppy). Then, edit the following key of the registry to point to the correct location: HKCU/Software/Microsoft/WAB/Wab File Name


HIDE THE LAST LOGON


By default, Windows NT 4.0 displays the name of the last person who logged on to the system. This can pose a security threat, especially if a user's password can be guessed from the account name or the login environment. To turn off this "feature," take the following steps:

1. Launch the Registry editor.
2. Select the hkey_local_machine key.
3. Locate the subkey \Software\Microsoft\WindowsNT\CurrentVersion\Winlogon.
4. Select the ReportBootOK item.
5. Select Edit | New | String Value from the menu bar.
6. Type DontDisplayLastUserName for the string's name.
7. Double-click the new string to edit its value.
8. Change the value to 1.
9. Click OK.
10. Close the Registry editor.


STRONG PASSWORDS


You can increase the security of a system by altering the parameters for valid passwords. From the User Manager for Domains application, select Policies/Account from the menu bar. In the Password Restrictions area of the dialog box, you can:

1. Set the age limit for passwords. This forces users to change passwords after a preselected number of days.
2. Set the minimum length of passwords to eight or more characters.
3. Keep a password history to prevent users from recycling old passwords.
4. Enable account lockouts that deactivate an account after a specified number of failed login attempts. I usually set this to 4.


SHARE SELECTIVELY


To restrict drive and folder sharing to individuals or groups:

1. Right-click the drive or folder to be shared.
2. Select Sharing from the menu.
3. From the Shared As section of the Sharing tab, click Permissions.
4. Remove the Everyone entry.
5. Click the Add button to add individuals and/or groups to the access list.
6. Click OK in all the windows to close and exit.


AUDITING


One common way to track security information and events is called auditing. Auditing creates a data file that records all network activities. NT 4.0's auditing system can track many security-related events. To enable NT's auditing capabilities:

1. From the Start button's Programs/Administrative Tools menu item, open the User Manager for Domains.
2. Select Policies/Audit from the menu bar.
3. Select the events you wish to track.
4. Click OK to start logging.
5. View the resulting audit logs with the Event Viewer. Select the view you wish to see (System, Security, or Application) from the Log menu.


TCP/IP & IPX ROUTING TUTORIAL


For a good basic guide for setting up an Internet-connected LAN or simple WAN-connected internetwork see:
http://www.sangoma.com/fguide.htm

This tutorial is intended to supply enough information to set up a relatively simple WAN-connected internetwork, or Internet-connected LAN. Explanations of IP addresses, classes, netmasks, subnetting, and routing are provided, and several example networks are considered. Example address and routing configurations are provided for the following protocol stacks and platforms:

Example 1: Single Node Connection to WAN Gateway

Example 2: LAN Connection to WAN Gateway
Trumpet Winsock 2.0 Rev B, Peter Tattum
Windows 95 and Windows NT
Windows 95 or Windows NT at Node A
Windows NT at Node Z
NetWare Server
Unix and Linux implementations of FPIPE

Example 3: Closed WAN-Connected Internetwork

A basic explanation of IPX routing is also included.


UNATTENDED INSTALLATION OF NT


You can turn off the End User License Agreement (EULA) to perform an unattended installation of NT.

Microsoft wants everyone to see the EULA and agree to it, whether they read it or not. If you turn the agreement off, you are essentially violating Microsoft's intent unless you print out the EULA and distribute it to the users. Be sure to do this!

To turn it off during unattended installations, you need to add the following statement in the Unattended section (UNATTEND.TXT by default) of your answer file: OEMSkipEULA=yes.


SIMPLE SECURITY TIPS FOR WINDOWS NT SERVER


Some people think that NetBIOS is inherently insecure and that any NT machine with NetBIOS bound to TCP/IP (or aren't blocking ports 135-139) is asking for trouble. If used carefully (and the messenger and alerter services are disabled) you'll be OK.

1. The main gate to all of your NT services is the "right to log on from the network". Highly recommend restricting this right severely. By default, "everyone" is allowed this right. Depending on how many admins there are, you should either create a new "administrators" group, or simply remove administrators from the listing, and add back in the individual users. Now you have a much shorter list of users who are allowed to log in from the network, and "administrator" isn't one of them. This is very important. "Administrator" can't be locked out from bad login attempts, and is ripe for brute force attacks. Also, if you can't log on from the network, you can't get into the registry, the event logs, enumerate shares - you name it.
2. Make sure that you have enabled account lockouts after a reasonable number of bad login attempts. This makes it a lot more tedious for someone to brute force the users who are allowed to log in from the network. Secondly, make sure that a reasonable password length is required and no one is using lame passwords.
3. Turn off the messenger and alerter services. This keeps the name of the console user from being broadcast in the NetBIOS name table. If this is done, the only information they can get is the machine name (which might have been had from a DNS lookup), and the domain or workgroup.
4. Disable the guest account! This is very important.
5. Explicitly set the ACL for all shares. Do not ever leave it as "All access - Everyone". If MS wanted to make this a lot better, they would cause shares to be created with default permissions that mirror the permissions on the directory which is being shared. Seems a bit silly to have a share where the directory is admin only, and the share is open to everyone. It would seem that they could fix this easily. Anyway...
6. Avoid running services under the localsystem account. Make separate, bare-minimum permission accounts for each (well, most) services. That way if a service gets compromised (either broken into or the software goes crazy) you: (a). limit the scope of damage and (b). have a log of exactly which service did what.
7. Set the permissions on your registry at a tighter level than default. The resource kit has some good suggestions for this.


Formatting a NTFS disk to FAT


QUESTION:
I have a NTFS SCSI disk I am trying to put into another computer. It is formated as NTFS and as you know DOS can not read it. I need to reformat this disk as FAT. What are the proper procedures to follow?

ANSWER #1:
1. The best and most simple tool by far is to use DOS and the DELPART.EXE tool that came with the NT 3.1 Resource Kit. You can find partitions of all OS types, including NTFS, HPFS and Unix and delete or examine them. If you then run the DOS2NTFS redirector utility, you can XCOPY from the NTFS partition to another FAT partition. Obviously, you do this before destroying the partition.

ANSWERS #2, #3, & #4
2. Using 6.22 or 95 setup disks, run the setup to that drive. Setup will re-partition the disk.
3. Attach the drive to NT machine, run disk manager, and remove the partition.
4. Use fdisk (6.x or 95), and delete the NON DOS partition.


Connecting two workstations without a hub


QUESTION:
How do I connect (network..) two computers without a hub?

ANSWER #1
10BASE-T uses a star topology. This means a hub or concentrator is in the center of a star, and each workstation or server is connected to this hub.

For test purposes, you can directly connect two workstations or a workstation and a server without using a hub. This setup requires a special cable incorporating the crossover function.

Function  Pin#        Pin#     Function
 -----------------------------------------------------------
  TX+         1 <-------->3        RX+
  TX-          2 <-------->6        RX-
  RX+         3 <-------->1       TX+
  RX-          6 <-------->2       TX-

ANSWER #2
If you're using standard Cat5 cable in the normal color order (orange/white-orange, green/white-blue, blue/white-green, brown/white-brown) then simply switch the oranges and the greens on one end of the cable. (Like: gw/g, ow/bl, bw/or, brw/br)


The '=' at the end of message lines


QUESTION:
What's the deal with the '=' at the end of message lines?

ANSWER:
"=" characters are the result of mail programs/systems that cannot handle "quoted printable" mail messages trying to display quoted-printable text. It seems that in a quoted-printable (or 7-bit) encoded message the "=" character signifies that what follows is the hex code for the character that is to be encoded. For example "=20" represents the space character, which is why this can often be seen on the end of every line of some mails.

The alternative to quoted printable/7-bit encoding is 8-bit encoding. A typical header of mail displaying the "=" is:


X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
*Content-Transfer-Encoding: 7bit*

You may want to try to change your preferences so that you send messages using 8-bit encoding instead of 7-bit quoted printable. There is a fix for this. Go into your Internet mail properties under TOOLS/SERVICES/INTERNET MAIL and change the Message Format/Character Set from ISO 8859-1 to US ASCII. (This applies to MS Exchange/Outlook.)


NT 4.0 CONTROL PANEL TIPS


1. For fast access to Control Panel applets, put them in a separate fly-out Start menu. Run RegEdit and choose Edit and then Find. Search the Data field only for Control Panel. Once it appears in the right pane, select its corresponding open folder icon in the left pane and choose Edit and Copy Key Name. Now close RegEdit, right-click on the Start button, and choose Explore. Then right-click on Explorer's right pane and choose New and Folder. Press Ctrl-V to paste the Registry value you copied in the previous step to the clipboard. All that's left is to modify the folder name so it reads Control Panel.{21EC2020-3AEA-1069 -A2DD-08002B30309D}. Now click on Start and examine your new Control Panel fly-out menu.

2. This is handy if you need to repeatedly access the same Control Panel item. Each resides in the \WinNT\system32 folder, uses the .CPL extension, and is associated with CONTROL.EXE by default. To create a Shortcut to System Properties, for example, launch the Shortcut Wizard by right-clicking on the desktop, then type SYSDM.CPL in the command line; Windows NT does the rest. Similarly, to create a Shortcut to the Control Panel's Network applet, type NCPA.CPL in the wizard's Shortcut command line.


NT 4.0 DISASTER RECOVERY TIPS


1. If you accidentally delete NT's boot files from the hard disk's \root folder, no operating system will boot. An NT boot disk can come to the rescue. To create one, insert a floppy disk, open Explorer, right-click on the A: drive icon, and choose Format. Then copy these files from the \root folder to the floppy disk: NTLDR, NTDETECT.COM, BOOT.INI, and BOOTSECT.DOS. If disaster strikes, simply boot from the floppy disk and copy those four files back to their original location.

2. If you get the boot-up message "BOOT: Couldn't find NTLDR. Insert another disk," the NTLDR file is either missing or corrupt. To fix it, copy the NTLDR file from the distribution media to the \root folder and reboot.

3. If you get the message "NTOSKRNL.EXE is missing, or corrupt," the culprit is usually the BOOT.INI file: Either it's missing, or its internal pointer to the NT system files is incorrect. If you've opened BOOT.INI in a text editor and verified that all is well, try copying NTOSKRNL.EXE from the distribution media to the \Winnt\system32 folder.


NAGGING PROMPT FOR FILE LOCATION


If you've installed NT 4.0 from a CD-ROM but have put its distribution files on a network server, NT prompts you for the location of the files each time you install a new component. To avoid this nagging prompt, you can set this value to a particular location. Just run RegEdit, select HKEY_LOCAL_MACHINE, and search for SourcePath. Double-click on the selected icon in the \Software\Microsoft\Windows\CurrentVersion\Setup subkey, modify its Value data field to point to your NT distribution files (e.g., F:\WinNT\I386), and click OK.


STOPPING CD AUTORUN IN NT 4.0


Open the registry editor (regedt32.exe) and modify the following key:
HKEY_LOCAL_MACHINE/
SYSTEM/
CurrentControlSet/
Services/
CdRom/
AutoRun : 0 to disable, 1 to enable.


MOVE ALL NT FILES TO NEW HARD DISK


You can move all the Windows NT files to the new hard disk
using a 3rd party disk copy utility like Ghost from Ghost Software.
You will need to install the second, larger drive, then you can 
use the Ghost utility to copy the Windows NT system files from 
the original hard drive to the new hard drive. The unique thing 
about the Ghost software is that it allows copying to the same or 
bigger hard drive.

A 30 day copy of the Ghost software is available from the 
following web site:http://www.ghostsoft.com

The Ghost Utility Description 
(quoted from the Ghost Software Web site)

"Ghost is designed to duplicate or clone disks for 
IBM compatible PCs. It works by copying all partitions
from the source to the target disk. The source and 
target disk may be on the same computer, or the target 
disk may be on a different computer providing the two 
computers are connected via a network. Ghost is 
particularly useful for cloning Win 95 systems. There 
is no need to FDISK or FORMAT the target disk - 
this is done automatically."

"The source and target disks may also be different sizes - 
Ghost will adjust the position and size of the target 
partitions automatically."

"Ghost can also be used to save the entire contents of a 
disk to a single disk image file. This file can be used 
for BACKUP, or for cloning copies of the original disk."

"GHOST (General Hardware Orientated Software Transfer)"
Binary Research Limited, 42 Wanganui Ave , Ponsonby,
Auckland, New Zealand
Phone (64)(4) 560 2492 or (64)(21) 663 861 
Fax (64)(9) 378 7332 
http://www.ghost.co.nz 
Email : sales@ghost.co.nz 


DETECT PC SYSTEMS COMPONENTS


Hidden away on your Windows NT 4.0 CD-ROM is a cool setup diagnostic 
utility called NTHQ.  You can find this utility  in the \SUPPORT\HQTOOL 
directory. You can use the NTHQ utility to detect PC system components 
prior to installing NT Server 4.0 or NT Workstation 4.0. 

Normally this utility is used by Microsoft product support personnel 
to identify the installed PC hardware, and for determining the resource 
settings when diagnosing a system.

Note: This tool is NOT designed to run under Windows NT or Windows 95.

Your system should meet these minimum hardware requirements to use NTHQ:
* 80486 processor
* 12 MB of RAM
* VGA adapter. 
* One formatted 3.5" 1.44MB floppy to create a NTHQ utility disk 

To create a NTHQ bootable disk:
1. Insert your original NT 4.0 CD-ROM into your CD-ROM drive.
2. Change your directory to "\SUPPORT\HQTOOL"
3. Insert a formatted 3.5" 1.44-MB disk into Drive A: 
4. Change to that Drive A:
5. MAKEDISK A:

To test out your "new" NTHQ bootable disk:
1. Place the NTHQ disk in Drive A:
2. Reboot the computer system.

The NTHQ utility will create a 4-MB RAM drive, detect the RAM drive 
letter, copy the ZIPFILE.EXE file to the RAM rive, self-extract the 
ZIPFILE.EXE file, start the NTHQ.EXE utility, log hardware and resource 
settings into a log file named NTHQ.TXT

The NTHQ utility will then display the detected hardware devices in 
the following four categories:  System, Motherboard, Video, and Others. 
(The Others category is used for device types the tool cannot positively 
identify.)

See the README.TXT file on your NTHQ bootable floppy for further info.


PRIVATE NETWORK IP ADDRESSES


Setting up a private network? According to RFC1597, the Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IP address space for private networks:


AUTOSEARCH IN IE 3.0


One of the hottest features in Internet Explorer is the autosearch that you access by simply typing in keywords in the IE Address field. Yahoo is the default search engine.


DO YOU KNOW HOW TCP/IP WORKS???


If not, a book called "Mastering Windows NT Server 3.5" (also for 4.0) will help. There is a good section on TCP/IP and Windows NT. Publisher: Network Press, E-mail: info@sybex.com, Phone:800-277-2346

Author: Mark Minasi - Noted DC-area author and trainer

NOTE: the 4.0 book is ISBN 0-7821-1920-4 Retails for $49.99US.

CREATE AN ICON FOR THE REGISTRY EDITOR (REGEDIT32)


First logon as Administrator and switch to the group Administrative Tools. Then, under the File menu choose New, then New Program Item and say OK.

Browse to C:\%systemroot%\system32\regedit32.exe. Select and say OK.


CONNECT TO MSN PPP SERVER WITH WINDOWS NT

1. Install RAS in Windows NT. 2. Start the Remote Access client software (RASPHONE.EXE). 3. Create a new RAS Phone Book entry. a. Choose the Add button to create a new entry in the RAS Phone Book. b. Add Entry Name, Phone Number (same local dialup number normally used to access MSN) and Description. c. Clear the "Authenticate using current user name and password" check box and choose Advanced (if you have not done already). d. Choose Network. e. Select PPP and TCP/IP (you may disable NetBEUI and IPX by clearing their respective check boxes). f. Clear the "Request LCP extensions (RFC 1570)" check box. g. Choose TCP/IP Settings and select "Server assigned IP address". Select "Server assigned name server addresses" and select the "Use default gateway on remote network" check box. 4. In the Add Phone Book Entry dialog box, choose Security. a. Select the "Accept any authentication including clear text" option. b. Accept these setting by choosing OK. Choose OK again in the Add Phone Book Entry dialog box. 5. Highlight the new phone book entry and choose Dial. a. Use MSN/(your MSN user ID) as your User Name. b. Use your MSN password as your password. c. Leave the Domain field blank. d. Choose OK to dial out. You should now be able to connect to the MSN PPP dialup service and use TCP/IP connectivity utilities in Windows NT. NOTE: The MSN prefix must be capitalized, and the MSN account name is case sensitive. You must also dial into an MSN phone number that supports calls for the service type "Internet and MSN."


TO DISPLAY A WARNING OR INFO MESSAGE AT LOGON


Look for the following key in the Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

Add your desired messages to to the following entries:
LegalNoticeCaption (this value will show in the window title)
LegalNoticeText (this value will show in the body of the window)

The next time you reboot you must say OK to this message before logging on.


ENABLE AUTOMATIC LOGON IN WINDOWS NT


Windows NT allows you to automate the logon process by storing your password and other pertinent information in the Registry database.

Use the Registry Editor (REGEDT32.EXE) to add your logon information, as follows:

1. Start REGEDT32.EXE and locate the following Registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
\Windows NT\CurrentVersion\Winlogon

2. Establish your domain name, account name, and password, using the
values you would normally type when logging on. You should assign
the following values:

DefaultDomainName
DefaultUserName
DefaultPassword

NOTE: The DefaultPassword value may not exist. If it doesn't, from
the Edit menu, choose Add Value. In the Value Name field, type:
"DefaultPassword" (without the quotation marks). Select REG_SZ for
the Data Type. In the String field, type your password. Save your
changes.

Also, if no DefaultPassword string is specified, Windows NT
automatically changes the value of the AutoAdminLogon key from 1 (true)
to 0 (false), thus disabling the AutoAdminLogon feature.

3. From the Edit menu, choose Add Value. Enter AutoAdminLogon in the
Value Name field. Select REG_SZ for the Data Type. Enter 1 in the
String field. Save your changes.

4. Exit REGEDT32.

5. Exit Windows NT and turn off your computer.

6. Restart your computer and Windows NT. You should be able to logon
automatically.

NOTE: This feature allows other users to start your computer and use the account you establish to automatically logon. Also, timing conflicts can occur. For example: If you have several network transports loaded, enabling automatic logon may make Windows NT attempt to connect to network resources before the network transports are completely loaded.


SYSTEMATIC APPROACH TO PERFORMANCE MANAGEMENT


This Tech Tip comes from Laura Berg of Datametrics. Datametrics, based in Fairfax, VA, develops and markets timesaving analysis tools for performance tuning and capacity planning. Datametrics ViewPoint runs on OpenVMS, UNIX, Unisys, and now Windows NT. ViewPoint offers administrators the advantage of using a single tool as a corporate standard throughout their distributed computing environment. For more information about ViewPoint for Windows NT, see the Datametrics web page at
http://www.datametrics.com, E-Mail: experts@datametrics.com or Phone: 703-385-7700.

Laura Berg has authored a paper entitled "A Systematic Approach to Performance Management." Performance management is the process of determining how well an existing or future computer system meets a set of alternative performance objectives. Arbitrarily selecting performance metrics, evaluation techniques and workloads often leads to inaccurate conclusions. How should one carry out a performance management study? The answer to this question is to follow a systematic approach.

We have made Laura Berg's paper available at http://www.asug.org/pm_berg.html.


ROUTING BETWEEN MULTI-PROTOCOL NETWORKS

Q: I need to route between networks; one runs TCP/IP and the other runs IPX/SPX. I can't figure out how to do it in NT. Do I need to use a Registry value?

A: To negotiate (route) between the networks, you'll need Microsoft's Multiple Protocol Router. It comes on the CD with Service Packs 2 and 3. You can also get this software from Microsoft's ftp site at ftp://ftp.microsoft.com/bussys/winnt/winnt-public/fixes/usa/NT351/ussp4/mpr This software will route TCP/IP and IPX/SPX protocols, but not NetBEUI.


RETORING REGISTRY SETTINGS AFTER NEW PERIPHERAL INSTALLATION

Q: I purchased a new motherboard. My old one used an NCR controller. For the new system, I purchased an Adaptec 2940 and a new hard drive. I installed NT, and it worked perfectly. To get back all my settings, I restored my previous working version of NT and its Registry with NTBackup. I got a message that the new files would not take effect until I rebooted. The system has not worked properly since. What did I do wrong?

A: This is an excellent question about a process that's easy to misunderstand. I am surmising that you backed up your Registry before you installed the new controller. You then added the controller and restored the Registry. Then, you replaced the system component that contained the original driver. For this approach to work, you need to restore all the Registry except the system portion. NTBackup is deficient in this regard. Some new backup programs let you restore the Registry by components. Try the following approach:
1. Install the NCR controller on the new system and then install NT.
2. Restore from tape, and reboot.
3. Add the Adaptec 2940 controller in Setup.
4. Shut down the system, and move the cables from the NCR to the Adaptec 2940 controller.
5. Be certain that termination is set properly, and restart the system.

The new system should function properly.


DISABLE DUAL-BOOT LOADER TIMER

If your NT machine is set up to dual boot, you are used to the sometimes mad scramble to make the right choice in the short pre-allotted time.

Now we all know that you can go into the Control Panel's System dialog box and select a time value from 0 to 999. That buys you some time, but if you want to disable the timer completely here's a quick trick for you.

Use notepad to open BOOT.INI and change the timeout = value to timeout = -1. That's right, minus one (-1). Then save the change and re-boot.

Remamber to turn off the read-only attribute for BOOT.INI before editing and then change back on to read-only after editing.

Now the multi-boot screen will stay visible until you decide to make a choice.


SHORTCUTS FOR WINDOWS NT SERVICES

If you do a lot of starting, pausing, and stopping the various NT Services, you'll want to check out this Tech Tip.

First we'll go through the "old" way, then we'll explore two alternate methods that will save you time and aggravation.

You know the old routine. First open up the Control Panel, then open up the Service Manager. Find the service and manually start, pause, or stop it. At best this is time consuming and repetitive.

One alternate methos is to use the command line to control the status of services. There are 4 useful NET commands that you can use from the command line:
NET START NET PAUSE
NET CONTINUE (this resumes the service after it has been paused)
NET STOP

If the service consists of two words you must use quotes. Here's how you would start the Net Logon service from the command line:
NET START "NET LOGON"

The second alternate method takes this one step further by assigning the NET command to an icon--creating a shortcut!

These icons can be housed anywhere, but we like to create a special program group called "Administrator's Toolbox." You get the idea...

Select that program group then click (in succession) File, New, Program Item, and OK. Now, from the Program Properties dialog you give your shortcut a name, place the command line NET command in the Command Line box, and click on the Run Minimized box. Now just select an appropriate icon and click OK.

Repeat this process for each of the 4 NET commands for each service you'd like to add to your "Administrator's Toolbox."


INSTALL ALMOST ANY EXECUTABLE AS A SERVICE

Need to run a program no matter who is signed on, or even if nobody is signed on? Look into your Windows NT 3.5 Resource Kit. There are a pair of tools in it that could make your job much easier!

INSTRV.EXE and SRVANY.EXE will allow you to install almost any executable (including batch files, such as .CMD and .BAT files) as a service. Use INSTSRV.EXE to install SRVANY.EXE. This will allow ANY Windows NT application as a service.

Aditionally, most 16 bit Windows and DOS applications should install fine as services, although some will not keep running after the current user logs off.


STATIC IP ADDRESS PROBLEMS

If a static IP address is defined for a network device, for example, a printer, and you install a DHCP server, duplicate IP address conflicts may occur between the network device and a DHCP client computer (running Windows for Workgroups or Windows NT). The conflict also occurs if you manually define static IP addresses to network devices and computers during a network link failure to a DHCP server and then the link is reestablished.

To resolve this conflict: Convert the network device with the static IP address to a DHCP client - OR - On the DHCP server, exclude the static IP address from the DHCP scope.

To exclude the static IP address from the DHCP scope:
1. Turn off the DHCP client computer in conflict with the network device that has the static IP address.
2. On the DHCP server, exclude the static IP address from the scope of the DHCP IP address range.
3. Restart the DHCP client computer.

NOTE: If the conflict persists for a Windows for Workgroups 3.11 client computer, delete the DHCP.BIN file in the Windows directory before you start Windows for Workgroups.


COMMAND LINE TIPS

(remove the /domain switch to generate a report for local machine.)

NET USERS /DOMAIN >USERS.TXT
This command will return the user accounts from the PDC of the current domain, and write them to a file called USER.TXT

NET ACCOUNTS /DOMAIN >ACCOUNTS.TXT
This command will return the account policy information from the PDC of the current domain, and write it to a file called ACCOUNTS.TXT

ADDUSERS \\COMPUTERNAME /D USERINFO.TXT
This Windows NT 3.5 Resource Kit command will return a comma delimited file (for spreadsheets) containing user and group information, and write it to a file called USERINFO.TXT.

PERMS COMPUTERNAME\USERNAME C:\*.* /S >PERMS.TXT
This Windows NT 3.5 Resource Kit command will return the username permissions on all files in all subdirectories on the c:\ drive of the computername, and write it to a file called PERMS.TXT


INCREASE NUMBER OF MRU NETWORK CONNECTIONS SHOWN

Windows NT maintains a list of the ten most recently used (MRU) network drives. To view this list in File Manager, choose Connect Network Drive from the Disk menu. The drop-down Path menu lists the MRU connections. To save more MRU connections, modify the Registry as follows:

1. Run Registry Editor (REGEDT32.EXE).

2. From the HKEY_CURRENT_USER subtree, go to the following key:

\Software\Microsoft\Windows NT\CurrentVersion\Network\Persistent Connections

3. Select Order.

4. From the Edit menu, choose String.

5. Change the entry to:

ABCDEFGHIJKLMNOPQRSTUVW

NOTE: This example assumes that you have only one fixed hard disk partition (drive C). If you have more than one drive, such as another hard disk partition or a CD-ROM drive, remove the corresponding number of letters from the end of the alphabet. For example, if you also have drive D and a CD-ROM labeled E, change the entry to ABCDEFGHIJKLMNOPQRSTU.

  1. Choose OK and quit the Registry Editor.

USE TCP, IP, ICMP & UDP COUNTERS IN PERFMON

To get the TCP, IP, ICMP, and UDP counters to appear in the Performance Monitor utility (PERFMON.EXE), you must install and start the \WINNT\SYSTEM32\SNMP.EXE service. This service is not installed by default when you install TCPIP. To install the service, choose the Network icon in Control Panel, choose the Add Software button, select SNMP Service, and then choose the Continue button. When you exit the Network settings dialog box, it asks you to shut down the system. This is not necessary, simply use the NET START SNMP command at the command line.


FORCE SCREEN SAVER TO START DURING LOGON

You can force the Windows NT screen saver to start during logon if no user logs on immediately. To do this, you need to modify the Registry by following these steps:

1. Start Registry Editor (REGEDT32.EXE) and select the HKEY_USERS subtree.

2. Go to the following subkey: \DEFAULT\Control Panel\Desktop

3. From the parameter list, select ScreenSaveActive.

4. From the Edit menu, choose String.

5. In the String field, change the value from 0 to 1 and choose OK.

6. From the parameter list, select SCRNSAVE.EXE.

7. From the Edit menu, choose String.

8. Enter the filename of the screen saver you want to use. For example: SSMYST.SCR or SSBEZIER.SCR.

9. Similarly, edit the String field for the ScreenSaveTimeOut parameter, and enter the time (in seconds) you want the screen saver to wait before activating.

After you complete these changes and shut down Windows NT, the screen saver should activate if a user fails to log on within the time specified by ScreenSaveTimeOut.


LICENSING MODE IDENTIFICATION

Use Control Panel License Manager, both locally and remotely, to quickly identify whether you are using Windows NT version 3.51 in Per Seat or Per Server Licensing mode.

HERE'S HOW

To determine a remote (or local) computer's licensing mode, start the License Manager and do the following:

1. Select the Server Browser tab.

2. Select domain and server.

  • If the icon displayed is a computer with a file and no CRT, then the computer is running in the Per Server mode. If the icon displayed is a computer with a file and a CRT, then computer is running in the Per Seat mode. Double-clicking on these icons allows you to change the licensing mode and edit the product properties.

Alternate method:

1. Select the Products View tab.

2. Select the Product from the list.

3. Select the Server Browser tab.

4. Select the computer from the list. It displays the licensing mode the computer is running in specific to this product.


REPORTS ON GROUPS,USERS, & PERMISSIONS

There are no graphical or command line utilities that produce comprehensive reports on groups, users and permissions included with the Windows NT Operating System or the Windows NT Resource Kit. The NET commands and the Windows NT 3.5 Resource Kit ADDUSERS.EXE and PERMS.EXE utilities can be sed to create limited administrative reports by piping the output to a text file.

HERE'S HOW (NOTE: removal of the /domain switch will generate a report for the local machine.)

Limited report generation is possible through the following commands:

1. NET USERS /DOMAIN >USERS.TXTThis command will return the user accounts from the PDC of the current domain, and write them to a file called USER.TXT
2. NET ACCOUNTS /DOMAIN >ACCOUNTS.TXTThis command will return the account policy information from the PDC of the current domain, and write it to a file called ACCOUNTS.TXT
3. NET CONFIG SERVER >SERVER.TXTThis command will return the server name, version of NT, active network adapter information/MAC address, Server hidden status, Maximum Logged On Users, Maximum open files per session, Idle session time, and assign it to a file called SERVER.TXT
4. NET CONFIG WORKSTATION >WKST.TXTThis command will return the workstation name, user name, version of NT, network adapter, network adapter information/MAC address, Logon domain, COM Open Timeout, COM Send Count, COM Send Timout, and write it to a file called WKST.TXT.
5. NET GROUP /DOMAIN >DGRP.TXTThis command will return the global groups on the PDC of the current domain, and write them to a file called GRP.TXT.
6. NET LOCALGROUP >LGRP.TXTThis command will return the local groups on the local machine, and write them to a file call LGRP.TXT.
7. NET VIEW /DOMAIN:DOMAINNAME >VIEW.TXTThis command will return the resources in the specified domain, and write them to a file called VIEW.TXT.
8. ADDUSERS \\COMPUTERNAME /D USERINFO.TXTThis Windows NT 3.5 Resource Kit command will return a comma delimited file (for spreadsheets) containing user and group information, and write it to a file called USERINFO.TXT.
9. PERMS COMPUTERNAME\USERNAME C:\*.* /S >PERMS.TXT This Windows NT 3.5 Resource Kit command will return the username permissions on all files in all subdirectories on the c:\ drive of the computername, and write it to a file called PERMS.TXT


PPP LOG FILE CREATION

Create a point-to-point protocol (PPP) log file to help diagnose connectivity problems between a PPP server and a PPP client when one of the computers is a Windows NT 3.5 Remote Access Service client. You can enable this option is by changing a value in the Registry.

HERE'S HOW

To enable PPP logging:

1. Run Registry Editor (REGEDT32.EXE).

2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:

SYSTEM\CurrentControlSet\Services\RasMan\PPP

3. Select the Logging value.

4. From the Edit menu choose DWORD.

5. Press 1 and choose OK.

PPP log

Copyright © 1993-1997 Association of Windows NT Systems Professionals. All rights reserved.