Sie sind auf Seite 1von 14

Windows Clients and GoPrint Print Queues

Overview
The following tasks demonstrate how to configure printers in a Windows
workgroup and Active Directory environments using the standard TCP/IP and
LPR ports. Scripting examples have also been provided to help dynamically
implement the process.

Scenario 1 - Peer to Peer (Windows Workgroup Environment)


In a computer lab environment it is common practice for institutions to
configure their workstations in a peer to peer environment. Since domain
accounts are not used, a local generic user account is created and set to
auto-login.

When a single sign-on is used, in order to successfully identify a user’s print


job at a GoPrint payment station, the “Machine Name” option must be
selected and users must recall the name of their machine. To help users
identify their print job, it is a common practice to place a label on the monitor
displaying the machine name

Pre-installation Requirements
Windows sharing uses the SMB/CIFS protocol and requires that users be
granted permissions to the share resource. When connecting to a network
print share, an authentication credentials prompt appears asking for a valid
user account. This can be avoided in a peer to peer environment if the
generic user account and password is first created on the GoPrint Print
Server. This allows for Windows pass-through authentication to occur
resulting in direct access to the shared printer.

TIP Windows XP Professional Service Pack 2 security requirements


may require a valid password when connecting to a
share - blank passwords may not be accepted. Also
File and Printer Sharing must be enabled on the Windows
Firewall in order to allow Machine names to resolve at the
payment stations.

Create the Generic User Account on the GoPrint Server

Right click My Computer >> Left click Manage >> Expand Local Users and
Groups
Add your new user and password. In this example a new user named
student is
created

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
1
 Grant the User Account print permission to each queue

Navigate to the list of printers


Installed on the GoPrint Print
Server

Right click a selected Printer

From the printer property sheet


Select the Security tab

Click Apply

Repeat for each printer

You are now ready to add the printer at the Workstation:

Navigate to the Start menu


Settings Printers
ADD Printer

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
2
ADD Printer wizard appears

Click Next

 Choose Local or Network Printer

Select Network Printer

Select NEXT

Note: Since you are


logged in as a general
user, the Add Local Printer
and Automatically Detect
and install a Plug and Play
Printer will be shaded

The Locate Your Printer


screen appears:

Name: Enter the network


path to the printer located
on the GoPrint server

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
3
Note: the path must follow the UNC path of \\servername or IP address
(GoPrint server) followed by the share name of the printer

Click Next

If only one printer


exists select YES to
leave as the Default
printer

If multiple printers
exist, select no and opt
not to send a test print
job

Click NEXT

The Completing
the Add Printer
Wizard appears

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
4
Click Finish to complete the printer installation

The new printer now appears under your list of installed printers. Repeat
the steps to install additional printers.

SHORT-CUT METHOD TO ADDING A PRINTER (run command)

Start Menu and select the


RUN command

Enter the network path to the


GoPrint Print Server

A connection to the GoPrint


server is established and a
listing of ALL shares will be
viewed

Double click on the print


queue you wish to add.
Example: src-hp4050

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
5
A warning box appears asking you to set up the printer locally before you
can use it

Select YES to add

The Printer will then be added to your list of available printers

Connect a Windows Client to a print server using LPR


(Optional)

An optional method to SMB/CIFS protocol and Windows Printing, is to map


queues using the standard LPR protocol. One advantage of using LPR printing
it bypasses the Windows security credentials. One disadvantage is, auto
detection of updated print drivers is not enabled.

IMPORTANT
Print Services for UNIX
must be installed and
running on the Windows
print server prior to
creating the LPR print
queue

Navigate to:
Control Panel >>
Add/Remove
Programs>>
Add/Remove Windows
Components

Select Other Network File


and Print Services

Click Details

Check – Print Services for UNIX (the Windows Server CD is required)

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
6
Navigate to Microsoft Services and manually Start the TCP/IP Print Service

Configure the LPR


queue

Open the Add Printer


Wizard

Choose to Create a new


Port.

From the Type drop


down list select: LPR
PORT

Click Next

The Add LPR compatible printer popup box appears:

Name or address of server providing lpd: Enter the name of the GoPrint
Print Server
Name of printer of print queue on that server: Enter the printer share
name

Select the appropriate Model


and Printer Driver

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
7
Name Your Printer

It is recommended to name
the printer using its existing
share name

Click Next

Your queue is now setup!

Scenario 2 - Adding Printers to Windows Workstations in an


Active Directory domain environment

Prerequisites:

 Join the GoPrint Print Server to the Active Directory domain used by the
client workstations

 Grant the domain user or group accounts Print permission to the shared
printers

Workstations joined to Active Directory can easily connect to printers on a windows 200x
using a variety of scripting techniques incorporated at the workstation level or applied to
the user or group profile using a login script. Please see your network administrator for
campus policies for additional information.

Map this printer for all users

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
8
Client machines may be mapped to print queues using a simply script using
the printui.dll utility supplied by Microsoft Windows.

 Login as a local administrator to the workstation


 Click Start, Run, and open a command prompt

SAMPLE 1

rundll32 printui.dll,PrintUIEntry /ga /c\\%computername%


/n\\goprintserver\printer_1
rundll32 printui.dll,PrintUIEntry /ga /c\\%computername%
/n\\goprintserver\printer_2

sc stop spooler
sc start spooler

The new printer has been added for all users.

To delete a printer, login as local administrator and issue the following


command

rundll32 printui.dll,PrintUIEntry /gd /c\\%computername%


/n\\goprintserver\print_1

sc stop spooler
sc start spooler

Verify that the workstation has permission or the ability to connect to a print queue on
the GoPrint Print Server. From a client machine:

Click Start, Run then in the Open: box type \\Server_Name\Printer_share_Name

If you do not have permission to access the printer you will see an error
similar to the following:

.
This can be
resolved by
granting the user
account or domain
Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
9
group permissions to access the printer and ensure the GoPrint Server has
been added to the domain

If you try connecting again…

You now have successfully connected to the printer!

Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
10
(Optional) How do you map a printer using VB Script?
'VB Script to add a printer queue
' Author = GoPrint Systems
' Date = May 3 2006

' Add a Printer Connection

' Windows Server 2003 : Yes


' Windows XP : Yes
' Windows 2000 : Yes
' Windows NT 4.0 : Yes
' Windows 98 : Yes

Set WshNetwork = CreateObject("WScript.Network")

WshNetwork.AddWindowsPrinterConnection "\\control\hp"
'The following line may be used to set the default queue
'WshNetwork.SetDefaultPrinter \\control\hp

(Optional) Ueing VB Script to map an LPR queue?


• First it makes an LPR queue
• Second it installs the printer drivers
• Then it creates a printer object that uses the new LPR port and driver
' create the lpr port.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort").SpawnInstance_

' Step 1 enter the name of the new LPR port


objNewPort.Name = "scriptprint"
objNewPort.Protocol = 2

' Step 2 Enter the ip address of the print server, you may also enter
' the host name of the print server
objNewPort.HostAddress = "192.168.0.2"

' Step 3 Enter the share name of the Queue


objNewPort.Queue = "HP"

objNewPort.PortNumber = "9100"
objNewPort.SNMPEnabled = False
objNewPort.Put_

Copyright 2006, Goprint Systems Inc, All Rights Reserved 10


' install the printer driver this part is not necessary if this
' driver has already been installed on the workstation

objWMIService.Security_.Privileges.AddAsString "SeLoadDriverPrivilege", True

Set objDriver = objWMIService.Get("Win32_PrinterDriver")

' Step 4 Enter the driver name


objDriver.Name = "HP LaserJet 8100 Series PCL 6"
objDriver.SupportedPlatform = "Windows NT x86"
objDriver.Version = "3"
' Step 5 Enter the path to the driver
objDriverPath = "C:\Scripts\hpbf014g.dll"
' Step 6 Enter the Path to the .inf file
objInfname = "C:\Scripts\hpbf014i.inf"
intResult = objDriver.AddPrinterDriver(objDriver)

' install the printer

Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_

' Step 6 set the driver name that the new printer will use
objPrinter.DriverName = "HP LaserJet 8100 Series PCL6"

' Step 7 set the port name that the printer will use
' this will be the port you setup in step 1
objPrinter.PortName = "scriptprint"

' Step 8 Name the new printer


objPrinter.DeviceID = "ScriptedPrinter"

' Step 9 is optional set the location of the new printer


objPrinter.Location = "USA/Redmond/Building 37/Room 114"

' here are some other optional items that may be set
' objPrinter.Network = True
' objPrinter.Shared = True
' objPrinter.ShareName = "ScriptedPrinter"
objPrinter.Put_

Copyright 2006, Goprint Systems Inc, All Rights Reserved 12


TROUBLESHOOTING TIPS

When entering the network path a login and password dialog box appears
requesting authentication:

• The user account attempting to access the print share on the GoPrint
server does not have access. To correct: an identical user account and
password MUST exist on the GoPrint server. If the authentication pop-
up box continues to appear, make sure the Everyone, Users or domain
groups have permission to the print share

• When entering the network path a “Could not Connect to Printer” error
message appears:

You could not print to the current printer because:

 The printer was renamed or deleted and slow network response time
has prevented the printer list from showing the updated printer
information.
 The print server is not available. For example, the network is down or
the server is shut down.
 The print server cannot be reached because you are not a member of
the same domain; that is, you do not have access to the print server.
 The printer driver is corrupt or failed to install correctly. For example,
you are using non-Microsoft supplied printer drivers that are not
compatible with Windows 2000. Quick solutions
 Contact the system administrator to make sure that the printer exists
and that the network is functioning properly.
 Try printing the document on another printer.

Copyright 2006, Goprint Systems Inc, All Rights Reserved 13


Copyright 2006, Goprint Systems Inc, All Rights Reserved 14

Das könnte Ihnen auch gefallen