Beruflich Dokumente
Kultur Dokumente
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.
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.
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
Click Apply
Copyright 2006, GoPrint Systems, Inc., All Rights Reserved Revised 5/3/2006
2
ADD Printer wizard appears
Click Next
Select NEXT
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 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.
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
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
Click Details
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
Click Next
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
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
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.
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.
SAMPLE 1
sc stop spooler
sc start spooler
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:
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
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
WshNetwork.AddWindowsPrinterConnection "\\control\hp"
'The following line may be used to set the default queue
'WshNetwork.SetDefaultPrinter \\control\hp
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort").SpawnInstance_
' 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"
objNewPort.PortNumber = "9100"
objNewPort.SNMPEnabled = False
objNewPort.Put_
' 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"
' here are some other optional items that may be set
' objPrinter.Network = True
' objPrinter.Shared = True
' objPrinter.ShareName = "ScriptedPrinter"
objPrinter.Put_
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:
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.