View printers via a Web browser

Would you like to see all your printers on a Print Server from any location using a Web browser? Here's a tip explaining how to do just that.

This Content Component encountered an error

In an article I wrote a few months ago, I discussed how to make a Web page for viewing printers via a Web browser.

This way works great, but Jason Miles, systems administrator at Ryder Technical Services, suggested a change to the ASP file that will do the same thing as changing the URL.

Here are my original steps:

***************

Now, one minor modification to the URL address so you can view all printers on one page.

Change the URL to the following:
http://%servername%/printers/ipp_0001.asp?startid=1&endid=40
Note: %servername% is the name of the print server
 

The Startid=1 is to start with the first printer in the list.
The Endid=40 is the ending printer to list on this page. This number needs to be larger than the number of printers on this server.

***************

Jason pointed out modifications to the ipp_0001.asp page that will have the same results, without having to modify the URL.

If you open the ipp_0001.asp using Notepad (or your favorite txt viewer), you will see the following code sample below:

 

<%@ CODEPAGE=65001 %> 
<%
'------------------------------------------------------------
'
' Microsoft Internet Printing Project
'
' Copyright (c) Microsoft Corporation. All rights reserved.
'
' Entry page for queue view.
'
'------------------------------------------------------------
option explicit
%>
<!-- #include file = "ipp_util.inc" -- >

<%

Randomize
Response.Expires = 0
Server.ScriptTimeOut = 6000 'Set time out to 10 minites

Const L_Opening_Text = "Opening"
Const L_GetADSI_Message = "Get ADSI Printers"
Const L_AccessDenied_Text = "Access Denied"

Const ADSI_PRINTER_NAME = 1
Const ADSI_PRINTER_LOCATION = 2
Const ADSI_PRINTER_COMMENT = 3
Const ADSI_PRINTER_MODEL = 4
Const ADSI_PRINTER_STATUS = 5
Const ADSI_PRINTER_JOBS = 6
Const ADSI_PRINTER_SHARE = 7
Const ADSI_PRINTER_ACCESS = 8
Const ADSI_PRINTER_ATTRIBUTES = 8

Const PRINTER_ACCESS_DENIED = 0
Const PRINTER_OPENING = 1
Const PRINTER_OK = 2


Const iPrinterLength = 10

If you change the line
Const iPrinterLength = 10 to Const iPrinterLength = X

X is the number of printers you want shown on each page. I suggest changing it to something larger than your current number of printers so you have some room for growth.

I have now changed mine to 40.

I want to thank Jason Miles for this wonderful tip.

Ron is the PC Systems Administrator at MPD, Inc. He is the Administrator for SMS 2.0, SMS 2003, Exchange 2000, Active Directory, Windows 2000 and 2003 Server.


This article first appeared in myITForum, the premier online destination for IT professionals responsible for managing their corporations' Microsoft Windows systems. The centerpiece of myITforum.com is a collection of member forums where IT professionals actively exchange technical tips, share their expertise, and download utilities that help them better manage their Windows environments, specifically Microsoft Systems Management Server (SMS). It is part of the TechTarget network of Web sites. To register for the site and sign up for the myITForum daily newsletter, click here: http://myitforum.techtarget.com/registration/form.asp?user=0.

This was first published in June 2004

Dig deeper on iSCSI Management for Windows

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close