Microsoft KB Archive/307016

= Cannot Set Up a Default Network Printer for All Windows XP Users =

Article ID: 307016

Article Last Modified on 4/24/2003

-

APPLIES TO


 * Microsoft Windows XP Professional Edition

-



This article was previously published under Q307016



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you deploy Windows XP Professional in a domain or workgroup, you may not be able to specify a default network printer. Instead, each user may have to log on and install the printer separately.



CAUSE
This issue may occur if the registry does not include some required registry keys. In Windows XP, the information about the network printer is stored in the   registry hive instead of in the   registry hive. The   registry hive stores settings that are specific to the currently-logged-on user, and the   registry hive stores settings that are related to the whole computer.



WORKAROUND
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. To work around this issue and to add a printer for all users, import the registry keys that relate to the printer into the default user profile:  Create a new user who is named Test :  Log on to the client computer as Administrator. Click Start, right-click My Computer, and then click Manage. Under System Tools, expand Local Users and Groups, right-click Users, and then click New User. Create a new user who is named Test .</ol> </li> Quit the Computer Management snap-in, and then display hidden files and folders: <ol style="list-style-type: lower-alpha;"> Click Start, click Control Panel, and then double-click Folder Options.</li> Click the View tab, click Show hidden files and folders, click to clear the Hide extensions for known file types check box, click Apply, and then click OK.</li></ol> </li> Log off the computer, and then log on as the Test user account that you created in step 1.</li> Click Start, click Printers and Faxes, and then click Add a printer. Follow the instructions on the screen to add a network printer.

Note You may have to be authenticated before you can connect to the network printer: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type cmd in the Open box, and then click OK.</li> Type net use lpt1: \\ \ /user:, and then press ENTER, where   is the name of the server with the shared network printer,   is the share name of the network printer, and   is the name of a user account with administrative credentials on the server.</li> Type the administrative password when you are prompted to do so, and then press ENTER.</li> Restart the Add Printer Wizard.</li></ol> </li> After you add the network printer, log off the computer, and then log on as Administrator.</li> Load the Test registry hive: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type regedt32 in the Open box, and then click OK.</li> Click HKEY_LOCAL_MACHINE, and then click Load Hive on the File menu.</li> Open the \Documents and Settings\  folder, where   is the name of the Test user that you created in step 1.</li> Click the NTUSER.DAT file, and then click Open.</li> In the Key Name box, type Test, and then click OK.

The Test registry hive is loaded under  .</li></ol> </li> <li>Insert the default user Test registry file under  : <ol style="list-style-type: lower-alpha;"> <li>Click the following registry subkey:

 

</li> <li>On the File menu, click Export.</li> <li>In the File name box, type print.reg, and then click Save.</li> <li>Click the   registry subkey, and then click Unload Hive on the File menu.</li> <li>Click Yes to confirm that you want to unload the key and all its subkeys.</li> <li>Click the   registry key, and then click Load Hive on the File menu.</li> <li>Open the C:\Documents and Settings\Default User.WINDOWS file.</li> <li>Click the NTUSER.DAT file, and then click Open.</li> <li>In the Key Name box, type Test, and then click OK.

The default user &quot;Test&quot; registry file is inserted under HKEY_LOCAL_MACHINE.</li></ol> </li> <li>On the File menu, click Import.</li> <li>Open the folder where you saved the Print.reg file, click Print.reg, and then click Open.</li> <li>When you receive the message that the information in the Print.reg file has been successfully entered into the registry, click OK. The printer information is loaded into the default user registry settings.</li> <li>Click the Test registry key, and then click Unload Hive on the File menu.</li> <li>Click Yes to confirm that you want to unload the Test key and all its subkeys.</li> <li>Quit Registry Editor.</li> <li>Test the new configuration by creating a new user, and then logging on as that user. The network printer is listed in the Printers and Faxes dialog box.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For additional information about how to add printers to Windows, click the following article number to view the article in the Microsoft Knowledge Base:

314486 How to Add Printers with No User Interaction in Windows XP

Keywords: kbprint kbhardware kbenv kbprb KB307016

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.