Tricks & Traps: Ask Dr. Bob Your Windows NT Questions
|Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
Windows NT Magazine, July 1999
Q: I want to give users access to their Microsoft Internet Information Server (IIS) accounts, but I'm having trouble establishing security. Unless I give users domain administrator rights, they either can't log on or lose files. Giving these users domain administrator rights isn't an option. How can I solve this problem?
A: You can solve this problem easily. You simply need to give system permissions to the shares. Screen 1 shows the Add Users and Groups permissions screen.
Screen 1 Checking ConcurrentLimit's FilePrint value
Q: I unsuccessfully attempted an unattended installation of Service Pack 4 (SP4). Is an unattended installation of SP4 possible?
A: An unattended SP4 installation is possible. First, because of the service pack's large size, obtain the SP4 CD-ROM that contains already-extracted files and copy the \i386 directory to a share directory on a network server. From this point, you can run the update in silent mode and even create a line that is run only once.
You need to be familiar with Windows NT's AutoAdminLogon (which automatically logs on the administrator after NT 4.0 installation completes) and RunOnce (which will run the custom command update.cmd). I always use the Edit command-line program for runtime scripts because Edit allows only ASCII characters.
Using Edit, create a file named autolog.reg that contains the following information:
[HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \WindowsNT \CurrentVersion \Winlogon]
Setting DefaultPassword blank is essential because NT disables the AutoAdminLogon feature after it runs once. Standard NT LAN Manager (NTLM) authentication occurs on subsequent logons.
Using a text editor, create a file named runonce.reg that contains the following information:
[HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \RunOnce]
For an automated installation, set up the $oem$ directory on your installation share. Copy autolog.reg, runonce.reg, and regedit.exe to the $oem$ directory. By default, regedit.exe is located in the \winnt (i.e., %systemroot%) directory.
Use Edit to create update.cmd.
Create an $oem$\c\batch directory on your distribution share, and copy your update.cmd file into this directory. You also need to include the following command line, which you will use to automate your customizations for NT 4.0:
\\<share point>\update.exe /u /z
in which share point is the network share containing the service pack files. Table 1 shows the switches available for update.exe. This line tells update.exe to run in an unattended and silent mode.
Table 1 Switches Available for Update.exe
Runs in unattended mode
Forces other applications to close at shutdown
Doesn't back up files for uninstall
Overwrites OEM files without prompting
Doesn't reboot when installation is complete
Runs in silent mode—no user interaction
If cmdlines.txt doesn't exist, use Edit to create it. Add the following lines to the [Commands] section of cmdlines.txt:
".\regedit.exe /s .\autolog.reg"
".\regedit.exe /s .\runonce.reg"
Ensure that OEMPreInstall is set to YES in your unattended script.
Q: I recently bought a Mylex BT-950 RAID controller for my system. I configured a 15GB RAID 0 set on the controller. During installation, Windows NT installed the driver, but when NT creates partitions, it limits me to 8GB of array. What's happening?
A: During the initial phase of installation, NT recognizes only 8GB of drive space. Don't make any extended partitions until you've completed the installation (i.e., make only a small partition for the OS). After NT is running in protected mode, you'll see the entire array.
Q: I want to upgrade our Windows NT 3.51 machines to NT 4.0 Service Pack 4 (SP4). Can I rename the NT directory to \winnt rather than \winnt35?
A: You're out of luck. NT and installed applications have settings that are dependent on the default Windows root directory name. All upgrades will use these settings. One look at the Registry will show you how extensive these settings are. The only way to install into a \winnt directory is with a new installation.
Q: I'd like to be able to print from a faster drive. How can I change Windows NT's default print spool directory?
A: To change the default print spool directory, select the printer from the Printers applet in Control Panel. Select File, Server Properties. On the Advanced tab, change the Spool Folder directory.
Alternatively, you can use a Registry editor such as regedt32. You can perform this change for all printers or for a specific printer. Go to the HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Print \Printers key. To change the default printer spool directory for all printers, add the value DefaultSpoolDirectory of data type REG_SZ, in which the string is the full path to the printer spool directory. To change the default printer spool directory for a specific printer, add the value SpoolDirectory of data type REG_SZ, in which the string is the full path to the printer spool directory. (You must enter an existing path, or NT will use the default directory.)
Q: I have several clients who want their dial-up connection to remain active after they log off the server. How can I set up Windows NT to maintain network connections when I log off a server?
A: Open a Registry editor, and go to the HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows NT\CurrentVersion\Winlogon key. Add the value KeepRasConnections of data type REG_SZ. Set the value to 1. About the Author
Bob Chronister is a contributing editor for Windows NT Magazine and president of Chronister Consultants in Mobile, Alabama. He is coauthor of Windows NT Backup and Recovery (Osborne/McGraw-Hill). You can reach him at email@example.com.
Send your tips and questions to Windows NT Magazine. You can also visit Bob Chronister's online Tricks & Traps at http://www.winntmag.com/forums/index.html.
The above article is courtesy of Windows NT Magazine.
We at Microsoft Corporation hope that the information in this work is valuable to you. Your use of the information contained in this work, however, is at your sole risk. All information in this work is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Microsoft Corporation. Microsoft Corporation shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages. All prices for products mentioned in this document are subject to change without notice.