How to Add a Default Printer for All New Users
This article was previously published under Q252388
This article has been archived. It is offered "as is" and will no longer be updated.
NOTE: This article describes how to edit the default user Ntuser.dat file on a Windows NT workstation. You can use the same steps to edit existing profiles or to create an Ntuser.dat file for distribution with mandatory or roaming profiles. However, the security and administration issues raised by these other uses of this information are beyond the scope of this article. Use the information in this article at your own risk.When you are installing a printer for users on a Windows NT workstation, you may want that printer to be used as the default printer for all users of the workstation without adding all of those users to groups that have the right to add printers. New users can use an installed printer if the Default User profile has been correctly edited to add the correct information for that printer.
The Default User profile is created when Windows NT is installed. The first time a user logs on to a workstation (or domain), the default user profile is copied to the user profile. Therefore, only new users are affected by changing the Default User profile as described in this article.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To add a default printer for all new users:
- Log on with the Administrator account and install the appropriate default printer.
- Start Registry Editor (Regedt32.exe).
- Locate the following key:HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\DevicesNote the information for the value of the key that represents the default printer that you created in step 1. For example, "Generic / Text Only : REG_SZ : winspool,LPT1:" is the printer named "Generic / Text Only" that is installed as a local printer using printer port LPT1. Network printers are listed as \\servername\sharename with a REG_SZ value similar to "winspool,Ne00:".
- On the Window menu, click HKEY_USERS.
- On the Registry menu, click Load Hive.
- In the %SystemRoot%\Profiles\Default User folder, click theNtuser.dat file, and then click Open.
- In the Key Name box, type ntuser, and then click OK.
- Open the following key:NTUSER\Software\Microsoft\Windows NT\Current Version\Devices
- On the Edit menu, click Add Value. Create the same value you noted earlier. For example, if you are using the sample printer mentioned earlier, "Generic / Text Only" is the value name, "REG_SZ" is the data type, and "winspool,LPT1:" is the string.
- Locate the following key:HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\PrinterPorts
- Note the information for the value of the key that represents the default printer that you created in step 1. For example, "Generic / Text Only : REG_SZ : winspool,LPT1:,15,45".
- Locate the following key:HKEY_USERS\NTUSER\Software\Microsoft\Windows NT\Current Version\PrinterPorts
- On the Edit menu, click Add Value. Create the same value you noted in the previous step. For example, if you are using the sample printer mentioned earlier, "Generic / Text Only" is the value name, "REG_SZ" is the data type, and "winspool,LPT1:,15,45" is the string.
- Locate the following key:HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\Windows
- Note the information for the Device value. For example, "Generic / Text Only,winspool,LPT1:".
- Double-click the Device value in the following key:HKEY_USERS\NTUSER\Software\Microsoft\Windows NT\Current Version\Windows
- Edit the Device value to reflect the information you noted in the previous step. For the sample printer, use "Generic / Text Only,winspool,LPT1:" for the string.
- Locate the following key:HKEY_CURRENT_USER\Printers
- Make a note of all the values contained in this key and any subkeys. You may want to use the Save Key command on the Registry menu.
- Select the following key:HKEY_USERS\NTUSER
- On the Edit menu, click Add Key. Type Printers for the new key name.
- Click the following key:HKEY_USERS\NTUSER\Printers
- Add all the values that you noted in the step 19. You may want to restore the key that you previously saved. To do this, click the key, and then click Restore Key on the Registry menu.
- In the HKEY_USERS window, click the NTUSER key.
- On the Registry menu, click Unload Hive.
- Quit Registry Editor.
146050 Modifying Ntuser.dat Hive So New Users Get Defined Settings
Article ID: 252388 - Last Review: 12/05/2015 18:21:56 - Revision: 1.4
Microsoft Windows NT Server 4.0, Terminal Server Edition, Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Server 4.0 Standard Edition
- kbnosurvey kbarchive kbproductlink kbenv kbhowto kbprint KB252388