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:
Install and run the application.
Choose a target computer.
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.
Step 2: Choose a Computer Figure 1 shows PMPMgr.hta's main window. It displays the current computer (i.e., the computer on which you installed the application) in the text box. To choose a different computer on which to add or delete per-machine printers, click the Change button and enter a new computer name at the prompt. If the application successfully connects to the computer (it checks whether the computer's print spooler service is running), it changes the current computer and updates the text box.
Step 3: Add Per-Machine Printers from a Print Server or Delete Per-Machine Printers
To add per-machine printers from a print server, click the Print Server button and enter the print server's name at the prompt. PMPMgr.hta retrieves the printers shared from the print server and adds them to the selection list in the middle of the window.
PMPMgr.hta compares the print server's list of shared printers with the list of per-machine printers installed on the current computer. Only the printers that aren't already installed on the computer are shown in the list. If the print server isn't sharing any printers, or if all of the server's printers are already installed on the computer, PMPMgr.hta will display an error message.
Select the printer(s) you want to add and click Apply. You can use the Ctrl and Shift keys on the keyboard to select multiple printers. Click the Clear List button if you want to clear the list.
To delete one or more per-machine printers from the target computer, choose Delete from the dropdown box in the top left corner of the application's window. The Print Server and Clear List buttons aren't available when you choose Delete because they're only meaningful when adding per-machine printers. The list box shows the per-machine printers installed on the target computer, if any. To delete one or more of the listed per-machine printers, select them from the list and choose Apply. You can use the Ctrl and Shift keys to select multiple printers.
Things to Know
If you want to uninstall the application, first unregister the PMPMgr.wsc component. (Right-click it in Windows Explorer and choose Unregister.) Then you can delete the application's files.
Here are some problems you might encounter when running PMPMgr.hta:
If you get an Automation server can't create object error when starting PMPMgr.hta, then PMPMgr.wsc isn't registered on the computer.
You must run PMPMgr.hta as a member of the local Administrators group on any computer on which you want to use PMPMgr.hta to manage per-machine printers. PMPMgr.hta will display error messages if you don't have sufficient permissions.
If you add or delete printers while a user is logged on, the changes won't be visible until the user logs off and someone logs back on or until you restart the computer's print spooler service.
I've found that per-machine printers have solved most of my printer management problems. This script component and HTML application make it even easier to take advantage of per-machine printers on your own network.
Solution Snapshot
PROBLEM:
You need an easy way to manage network printers for all the users of a computer at one shot.
SOLUTION:
The PMPMgr.hta application adds a graphical interface to PMPMgr.wsc, a script component that automates the use of Windows per-machine printer functions.
WHAT YOU NEED:
Windows 2000 or later, the PMPMgr.hta application
DIFFICULTY:
2.5 out of 5
Reader Comments
Oops? No download button...
rejohnson -November 29, 2006
Would rate it higher if the applet was available to download and test.
rgwin -November 29, 2006
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
Where is the download!
kiteguy -December 05, 2006
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
Still no download button
pasvorto -December 11, 2006
I would like to download this utility, but there is still no download button.
jaybrophy -December 11, 2006
No download button
pbourgouin -December 15, 2006
So where can I download this plug-in???
stocka -December 18, 2006
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
I'm obviously going blind....
I still can;t see the link for the download
croftj007 -December 19, 2006
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?
skygazer -December 19, 2006
Seems odd to publish a magazine and an online article without giving the link for the file??
kendal.king -December 19, 2006
To download the code, first you need to have an active subscription or VIP subscription to Windows IT Pro. Now assuming you have that, at the top of this article just below the author details and the line "Subscribe to Windows IT Pro | See More Printing Articles Here | Reprints" there is blue "Download the Code Here" button.
yogesh -December 19, 2006
I am logged in and have a VIP subscription. ( I can for example go and print the full article) BUT I still cannot see a download button to get the script downloaded.
ursrau -December 23, 2006
Perhaps it is just me, yet I have been staring at this page for 10 minutes with both Firefox and Internet Explorer and I am unable to locate the "download the code" link.
gavnone -December 26, 2006
I've had problems for several days myself. Yesterday I called and customer service got me in. Today I log in and once again I don't have access
DManQZar -December 27, 2006
Once you set up the printers on the target machine using this script, is it possible to remove them manually from the workstation without using this script to remove?
ian@zoerg.com -January 03, 2007
This is absolutely crazy. At the subscription prices of VIP memberships and then the download the code buttons don't work. What a rip-off. Yes, I am logged in, and yes I do have a current VIP membership.
ursrau -January 04, 2007
called customer support and it was a profile issue. it is fixed, for now.
ursrau -January 04, 2007
I currently have a subscription to your Magazine.
Why can't I get to the download?
JZICARI -January 05, 2007
Hi,
I have the same problem with downloads.
I'm loged in, and not only the download bottom don't appear, but the page is full of subscribe now messages.
Strange
Please resolve this problem
Thanks
João Mendes
jmendes -January 05, 2007
I too couldnt see the download code button, but i found a way round it, click on Resources and then code library and type in search "pmpmgr.hta" and it should come up with the article and hey a download code link! :)
spallison@southdowns.ac.uk -January 08, 2007
Downloaded and installed just fine, and works great on the local computer on which it is installed.
Doesn't seem to work for remote computers on the network. Logged in as myself, however I am a member of the Domain Admin group. When I input the name of another computer, it returns 0X800A01CE and says that the remote computer cannot be found or is not running the spooler service. Neither of these are actually true.
This would be a super tool as I am slated to replace my print spooler next month.
jimmrr -January 11, 2007
XP firewall appears to interfere w/ program - looks like its working over 135?
ewallig@aerocontractors.com -January 17, 2007
Hi,
I have the same problem, couldn't find the download button.
Jean-Marc
Reuter -January 24, 2007
Yeah gret article but I can't get it all or the files and my number isn't allowing me to associate my subscription with the website (stupid idea).
liddlem -February 04, 2007
you will see the download code option when you are NOT in printer friendly view.....good luck-
jhusted -March 11, 2007
You must be a suscriber to download the files. Once you've logged in you should see it where mcgis previously posted.
wasfym -April 06, 2007
I'm logged in and still can't see the download option. Just about sums up my ability to access the resources of a subscriber of 8 years. No more!!!
briarni@msn.com -June 06, 2007
Goodmorning,
We are migrating printers to new file/print clusters. This tool looks very useful.
Can someone point me to the download link?
Thanks,
NDAskani
NDAskani -June 08, 2007
Followed the advice from spallison@southdowns.ac.uk's post from January 08 and found the download link.
Thanks!
NDAskani -June 08, 2007
Followed the advice from spallison@southdowns.ac.uk's post from January 08 and found the download link.
Thanks!
Free CDs Offer Fundamental Content for IT Pros Are you up to speed on the latest technologies and solutions? Don't miss out on your chance to get up to speed quickly on fundamental, in-depth information on some of the hottest topics in our library of content.
Let Your Users Reset Their Own Passwords: Free Download Try a 30 day free trial of Desktop Authority Password Self-Service – it provides an easy-to-use, robust system for allowing users to reset their own forgotten passwords or locked accounts.
Get Windows IT Pro & Mark Minasi’s Favorite Power Tools Guide Order Windows IT Pro now and get "More of Mark Minasi's Favorite Power Tools"--a in-depth guide to the most useful Windows commands --FREE with your paid order! Subscribe today, and save 58% off the cover price!
Deep Dive into VMware vSphere, eLearning Series Join John Savill to explore the major functionality capabilities of the vSphere virtualization platform, including identification of the changes from ESX 3.5.