Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2003

Connecting to Printers

RSS
Subscribe to Windows IT Pro | See More Printing Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

In Scripting Solutions: "Connecting to Printers" (August 2002, http://www.winnetmag.com, InstantDoc ID 25652), Christa Anderson explains how to use the WshNetwork (aka WScript.Network) object to direct users to the right printer. I have a better solution that doesn't require much scripting. My solution requires Windows 2000 Professional and the Microsoft Windows 2000 Server Resource Kit's robocopy.exe and con2prt.exe tools.

First, create a centralized directory called \\servername\share\all users\printers. Within the printers subdirectory, create as many folders as you want (e.g., ...\all users\printers\1st Floor\Dept A, ...\all users\printers\1st Floor\Dept B, ...\all users\printers\2nd Floor\Dept C, ...\all users\printers\2nd Floor\Dept D). Suppose you have two printers in 1st Floor\Dept A. You need to create two shortcuts that contain the path \\servername\share\con2prt.exe /cd \\printserver\sharename, and you need to give each shortcut a meaningful name (e.g., HP_XXX at Alice Place, HP_YYY at Bob Place).

Create both shortcuts for every printer on each floor. As you add or remove printers on different floors or in different departments, you can simply create the necessary folders and shortcuts under the \\servername\share\all users\
printers subdirectory.

To publish the printers folders to users who need to use the printers, add the following command to your logon script

robocopy "\\servername\shareall users\printers\" "C:Documents and Settings\All 
Users\Start Menu\Printers" /mir

When a user logs on for the first time after this change, the printers appear in the user's local profile. The user can then choose any printer. For subsequent logons, the copy and download processes are abbreviated because Robocopy downloads only the source directory changes.

This solution lets users select any printer, even on a different floor or in another department. In addition, network performance doesn't suffer each time a user logs on in the morning. The benefits are that administrators can easily maintain printer setup from a centralized folder, and the solution requires only minimal scripting. For more information about Robocopy and Con2prt, see the resource kit documentation.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

Escape From Yesterworld

Kevin points you to the funniest SQL Server website ever! ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing