Title: Windows 2000 in the Enterprise
Published by TechTarget 
 June 17, 2004 >> Receive this e-mail as text   >> About this e-mail 

SPONSORED BY: ManageSoft Corporation: Planning a large-scale Windows rollout?
Manual Windows deployment projects can be challenging and time-consuming. Download this free white paper, "Automating Windows Deployment" by ManageSoft to learn how to automate Windows deployment for new and existing desktops, laptops and servers.

View printers via a Web browser
by Ron Crumbaker, Contributor, MyITForum.com

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?track=NL-36&ad=485231&user=0.


MORE ON THIS TOPIC:
>>  Locating Printers in Active Directory environment

>>  Automating Printer Management

>>  Making XP Network printer load for all users


RESOURCES DIRECT FROM: MyITForum.com

>>  Remotely enable Remote Desktop
>>  Exchange Server 2003 RPC over HTTP Deployment Scenarios
>>  System Services for the Windows Server 2003 Family and Windows XP Operating Systems
>>  Want to be notified when new KBs are released?
  A B O U T   T H I S   N E W S L E T T E R
TechTarget
Contact us:
TechTarget
MemberServices
117 Kendrick Street, Suite 800
Needham, MA 02494

This e-newsletter is published by TechTarget, the most targeted IT media and events company.
TechTarget offers magazines, Web sites, e-newsletters, Webcasts and conferences for enterprise IT professionals.
Copyright 2004 TechTarget. All rights reserved.

To unsubscribe from "Windows in the Enterprise - Best practices for deployment and management in business":

Go to unsubscribe: http://searchtechtarget.techtarget.com/unsubscribe?track=NL-36&ad=485231

Please note, unsubscribe requests may take up to 24 hours to process; you may receive additional mailings during that time. A confirmation e-mail will be sent when your request has been successfully processed.

Reply via email to