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 


December 2006

Per-Machine Printer GUI

PMPMgr.hta script lets you manage network printers for all of a computer's users at once
RSS
Subscribe to Windows IT Pro | See More Printing Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

In "Per-Machine Printer Connections + Custom Plug-In" (May 2006, InstantDoc ID 49741), I presented a Windows Script Component (WSC), PMPMgr.wsc, and a command-line script, PMPMgr.js, that make it easy to manage per-machine printers on one or more computers. If you haven't used per-machine printers before, they're network printer connections that appear for all users of a computer. (In contrast, the Add Printer wizard adds a printer only to the current user's profile.)

The command-line script I presented in the previous article does its job well, particularly for managing per-machine printers on multiple computers, because it supports reading lists of computers and printers from text files. This is very useful when managing per-machine printers en masse; however, I found myself wanting an easier-to-use tool when I needed to manage per-machine printers on one computer at a time. To meet this need, I designed an HTML Application (HTA), PMPMgr.hta, that provides a GUI for the PMPMgr.wsc component.

Per-Machine Printers
Per-machine printers are very useful when you want printers to appear per-computer instead of per-user. With per-machine printers, an administrator can add printers to a computer once, and the added printers appear no matter who logs onto the computer. Because per-machine printers appear for all users that log onto a computer, they provide a number of useful benefits for system administrators:

  • Per-machine printers can be managed (viewed, added, and deleted) remotely.
  • Inexperienced users won't need training on how to add printers to their profile.
  • It's easier to upgrade a print server because users won't need to delete the obsolete printer connections and add them from the new print server; an administrator can do it remotely.

Per-Machine Printer with GUI
As I noted in the previous article, per-machine printers are available (but nearly undocumented) in Windows 2000 and later, and leveraging them requires you to type some very cumbersome Rundll32 commands. The script component PMPMgr.wsc acts as a wrapper for the Rundll32 commands and provides an interface for scripts to easily manage per-machine printers on the local or a remote computer. The PMPMgr.hta GUI application provides an easy-to-use interface for the script component.

The PMPMgr.wsc component and its associated HTA files require Windows 2000 or later. You can download the PMPMgr plug-in by clicking the Download the Code button at the top of the Web page. Table 1 shows the files that make up the application and a brief description of each one.

To use the application, you need to perform only these three steps:

  1. Install and run the application.
  2. Choose a target computer.
  3. Add per-machine printers from a print server to the target computer or delete printers from the computer.

I'll also tell you how to uninstall the application.

Step 1: Install and Run the Application
To install and run the PMPMgr.hta application, first download the .zip file and extract its contents to a suitable folder on your computer. As mentioned above, Table 1 shows the files required to run the application.

If you have the older version of PMPMgr.wsc (downloaded from the article at InstantDoc ID 49741) installed on your computer, you need to unregister it before continuing to the next step. To do this, right-click the old PMPMgr.wsc file in Windows Explorer and choose Unregister. The upgraded version of PMPMgr.wsc has some improvements necessary to work with the new application. The old PMPMgr.js script will continue to work without any changes. You must be logged on as an administrator to complete this step.

Register the new PMPMgr.wsc component. To do this, right-click the new PMPMgr.wsc file in Windows Explorer and choose Register. You must be logged on as an administrator to complete this step.

Execute PMPMgr.hta by double-clicking it in Windows Explorer or typing its name at a command prompt.

   Previous  [1]  2  Next 


Reader Comments
Oops? No download button...

rejohnson November 29, 2006 (Article Rating: )


Would rate it higher if the applet was available to download and test.

rgwin November 29, 2006 (Article Rating: )


Due to a production error, all of the downloadable files for this article weren't originally available. This problem has been corrected. Sorry for any inconvenience this might have caused.

chumphries@penton.com December 01, 2006 (Article Rating: )


Where is the download!

kiteguy December 05, 2006 (Article Rating: )


I get the following error when running PMPMgr.hta: An error has occured on the script on this page (Line 70/Char 1 - Automation Server can't create object).If I click continue to run scripts on this page I get the error args.pmpmgr is null or not an object error when I run the PMPMgr.hta . I would love to have a program that can perform this task. Any idea what changes I need to make or is this an IE problem?

bleibow December 06, 2006 (Article Rating: )


Still no download button

pasvorto December 11, 2006 (Article Rating: )


I would like to download this utility, but there is still no download button.

jaybrophy December 11, 2006 (Article Rating: )


No download button

pbourgouin December 15, 2006 (Article Rating: )


So where can I download this plug-in???

stocka December 18, 2006 (Article Rating: )


There is a blue button [Download the code here] above the advertising banner towards the left.

Is there any way to set the default printer?

mcgis December 18, 2006 (Article Rating: )


 See More Comments  1   2   3   4 

You must log on before posting a comment.

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




Learning Path Learn about a component for working with per-machine printers:
"Per-Machine Printer Connections + Custom Plug-In"


Discover how to automate printer functions:
"PrintUI.DLL User's Guide and Reference"


Top Viewed ArticlesView all articles
The website is down because someone removed the X-Box

What happens when a manager mistakes a server for a games console. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Microsoft Kills OneCare, Will Launch Free Security Solution

Microsoft on Tuesday announced that it would retire its $50-a-year security subscription product, Windows Live OneCare, and replace it with a free solution codenamed "Morro." Unlike OneCare, however, Morro will focus only on core anti-malware features and ...


Related Events Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting 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