loginscripts.info
from Sembee Ltd.
UK MS Exchange Consultants
 

Page Last Updated: 21/02/2010
Working with Printers

This information was originally on our community
site amset.info, and you may have been
redirected to this site by following a link to a URL
on that domain. This is the same information, from
the same source, just in a new location.

If you have networked printers, then you probably have them shared from one of your servers. You can also use a login script to connect your users to these. This makes managing printers across a network very easy as users will be connected to the printers each time they login - even if they haven't used that machine before.

Connecting to Printers

There are two ways of connecting to printers.

DOS Command Utility

To make the connection to the printers via a login script requires a small resource kit utility to "con2prt.exe". This can also be found in the NT 4.0 Zero Administration Kit which you can download from here
You don't have to use the rest of the ZAK to get this utility and this utility works on Windows 2000 and higher as well as NT 4.0. 

To use, simply enter the command along with the switch /c to indicate that you actually want to connect to it along with the path to the printer.
For example to connect to a printer shared as hp-printer on server1 you would enter:

If you wanted this printer to be the default printer, then you would change the switch to /cd instead:

If you have multiple printers you should play around with the order they appear in the script so that the most common used is at the end.

Using the Native Mechanism

If you don't want to use another file to make the connection, you can also use the native mechanism, which was introduced with Windows 2000. To connect to the printer using the names above would mean the following command:

Disconnecting Printers

You can also use con2prt to disconnect network printers, although the command deletes all network connected printers. This is done with the command:

con2prt /f

If you are using the script to connect network printers, you might want to put this command at the top, so that the user account is reconnected to the printer each time. Any changes made to the central printer will then be passed across to the client machines at the next login.


About this site

This information originally started life as a page on amset.info, our community assistance site. However that site is targeted at Microsoft Exchange server, as Sembee Ltd. is a Microsoft Exchange consultancy. Therefore it was moved to its own domain in early 2010. Traffic from amset.info is directed here.

Other sites that are owned and operated by Sembee Ltd include kbsearch.info, certificatesforexchange.com, dosprompt.info, office-recovery.info, wuauclt.info, blog.sembee.co.uk, exbpa.com and amset.info.


More Content from Sembee Ltd.
 
Resources on amset.info Other Sites Sembee Ltd.
Microsoft Exchange Command Prompt Getting Started Guide Microsoft Exchange Consultancy
Microsoft Outlook Login Scripts Director's Blog
Network Administration MS Exchange Resources  
Internet Explorer Knowledge Base search  
Microsoft Windows Recovery of MS Office content from Temp Files  
Microsoft Windows Mobile Troubleshoot the Automatic Updates Client  
Amazon Store    

© Sembee Ltd. 1998 - 2010.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions. All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned on this site. This site is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.