Академический Документы
Профессиональный Документы
Культура Документы
Print Service
Product Operations Guide
The information contained in this document represents the current
view of Microsoft Corporation on the issues discussed as of the date of
publication. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the
part of Microsoft, and Microsoft cannot guarantee the accuracy of any
information presented after the date of publication.
Contents
Introduction to Product Operations Guide........................................................................... ............1
Document Purpose................................................................................................................. .....1
Intended Audience.................................................................................................................. .....1
How to Use This Guide............................................................................................................. ...1
Background.............................................................................................................. ...................2
High-Level Tasks for Maintaining
Windows Server 2003 Print Service........................................................................................... .....5
Overview............................................................................................................. ........................5
Technology Required.............................................................................................................. .....6
Maintenance Processes Checklist........................................................................................... ....8
Operating Quadrant................................................................................................ .................8
Supporting Quadrant............................................................................................................. .12
Optimizing Quadrant.................................................................................................. ............14
Changing Quadrant............................................................................................................... .16
Detailed Maintenance Actions............................................................................................... ........18
Overview.......................................................................................................... .........................18
Process: Data backup, restore, and recovery operations............................................. .............19
Task: Back up printer configuration............................................................................ ............19
Process: Data backup, restore, and recovery operations............................................. .............21
Task: Run weekly normal backup.............................................................. ............................21
Process: Designing for recovery............................................................................................ ....23
Task: Update automated system recovery backup.................................... ............................23
Process: Designing for recovery............................................................................................ ....25
Task: Validate automated system recovery backup....................................... ........................25
Process: Print and output maintenance support activities—print queues..................................27
Task: Monitor print queue for performance................................................... .........................27
Process: Managing resources and service performance.................................................... .......30
Task: Capture service-performance statistics.............................................. ..........................30
Task: Capture service-usage statistics............................................................................ .......35
Process: Managing resources and service performance.................................................... .......38
Task: Create service performance and utilization report..................................... ...................38
Task: Create system load and utility report........................................................ ....................39
Process: Reviewing configuration items....................................................................... .............40
Task: Capture configuration snapshot............................................................................. .......40
Process: Maintenance and support activities................................................... .........................43
Task: Compliance check—enumerate unused printer ports........................................... ........43
Process: Reviewing configuration items....................................................................... .............45
Task: Compliance check—verify installed print drivers.................................. ........................45
Task: Compliance check—verify printers published in Active Directory.................................46
Process: Incident closure.................................................................................. ........................48
Task: Roll up activity report into monthly metric..................................................... ................48
Process: Investigation and diagnosis................................................................. .......................49
Task: Respond to daily service request................................................................................ ..49
Task: Create weekly service request activity report........................................ .......................50
Process: Problem recording and classification............................................................ ..............52
Task: Review daily problem-management reports........................................... ......................52
Process: Change classification and authorization................................................ .....................54
Task: Attend CAB meeting................................................................................. ....................54
Task: Review emergency change request.................................................... .........................55
Process: Print and output configuration activities—managing printers......................................58
Task: Transfer documents to another printer...................................................................... ....58
Process: Maintaining the directory................................................................. ...........................60
Task: Publish printers to Active Directory................................................................. ..............60
iv Managing the Windows Server Platform
Contributors
Program Manager
Jeff Yuhas, Microsoft Corporation
Lead Writers
Michael Sarabosing, Covestic Inc, USA
Akil Washington, Covestic Inc., USA
Other Contributors
Steve Barnard, Microsoft Consulting Services
Trung Huynh, Microsoft Corporation
Test Manager
Greg Gicewicz, Microsoft Corporation
QA Manager
Jim Ptaszynski, Microsoft Corporation
Editor
Susan Joly, Volt Technical Services
Production Editor
Kevin Klein, Microsoft Corporation
1
Introduction to Product
Operations Guide
Document Purpose
This guide describes processes and procedures for improving the management of
Microsoft® Windows Server™ 2003 Print Service in an information technology (IT)
infrastructure.
Intended Audience
This material should be useful for anyone planning to deploy this product into an
existing IT infrastructure, especially one based on the IT Infrastructure Library (ITIL)
—a comprehensive set of best practices for IT service management—and Microsoft
Operations Framework (MOF). It is aimed primarily at two main groups: IT
managers and IT support staff (including analysts and service-desk specialists).
Background
This guide is based on Microsoft Solutions for Management (MSM). MSM provides a
combination of best practices, best-practice implementation services, and best-
practice automation, all of which help customers achieve operational excellence as
demonstrated by high quality of service, industry reliability, availability, and
security, and low total cost of ownership (TCO).
These MSM best practices are based on MOF, a structured, yet flexible approach
centered around ITIL. MOF includes guidelines on how to plan, deploy, and
maintain IT operational processes in support of mission-critical service solutions.
Central to MOF—and to understanding the structure of this guide—are the MOF
Process and Team Models. The Process Model and its underlying service
management functions (SMFs) are the foundation for the process-based approach
that this guide recommends for maintaining a product. The Team Model and its role
clusters offer guidance for ensuring the proper people are assigned to operational
roles.
Figure 1 shows the MOF Process Model combined with the SMFs that make up each
quadrant of the Process Model.
Figure 1
MOF Process Model and SMFs
Print Service Product Operations Guide 3
Figure 2 shows the MOF Team Model, along with some of the many functional roles
or function teams that might exist in service management organizations. These roles
and function teams are shown mapped to the MOF role cluster to which they would
likely belong.
Change management
Release/systems engineering
Configuration control/asset
management
Software distribution/licensing
Intellectual property protection Quality assurance Enterprise architecture
Network and system security Infrastructure engineering
Intrusion detection Capacity management
Virus protection Release Cost/IT budget management
Audit and compliance admin Resource and long-range
Contingency planning planning
Security Infrastructure
Partner Support
Figure 2
MOF Team Model and examples of functional roles or teams
4 Managing the Windows Server Platform
The MOF Team Model is built on six quality goals, which are described and matched
with the applicable team role cluster in Table 1.
Table 1. MOF Team Model Quality Goals and Role Clusters
Quality Goal Team Role Cluster
Technology Required
Table 3 lists the tools or technologies that are required for the procedures described
in this guide. All tools should be accessed from a Windows Server 2003 console.
Table 3. Technology Required for Procedures Described
Technology Description Location
Required
Printers and Faxes Tool used to create and Start > Printers and Faxes
manage printers on a
server.
System Monitor Tool used to collect data Start > All Programs >
on server health and Administrative Tools >
(formerly known
performance. Performance
in Windows® 2000
as Performance Or to open System Monitor
Monitor) using the command line:
Start > Run. In the Open box,
type perfmon, and then click
OK.
Event Viewer Tool used to monitor and Start > All Programs >
gather information on Administrative Tools > Event
system, security, and Viewer
application events. Or to open Event Viewer using
the command line:
Start >Run. In the Open box,
type eventvwr.msc, and then
click OK.
Distributed File Tool used to monitor DFS Start > All Programs >
System (DFS) namespace including Administrative Tools >
MMC roots, links, and targets. Distributed File System
Table 4 lists the tools or technologies that are recommended for the procedures
described in this guide. Once again, all tools should be accessed from a Windows
Server 2003 console, except in those cases where a link or other resource is listed.
Table 4. Technology Recommended For Procedures Described
Recommended Description Location
Technology
Operating Quadrant
The processes for this section are based on the SMFs that make up the MOF
Operating Quadrant.
Further information about the MOF Process Model and the MOF SMFs is available at
http://www.microsoft.com/solutions/msm/techinfo/default.asp, or search for “MOF
Executive Overview,” or the name of the SMF, on TechNet ath
http://www.microsoft.com/technet/default.asp.
configuration activities—
managing printers
10 Managing the Windows Server Platform
Storage Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Supporting Quadrant
The processes for this section are based on the SMFs that make up the MOF
Supporting Quadrant.
Incident Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Problem Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Optimizing Quadrant
The tasks for this section are based on the SMFs that make up the MOF Optimizing
Quadrant.
Capacity Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Availability Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Changing Quadrant
The processes for this section are based on the SMFs that make up the MOF
Changing Quadrant.
Change Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Configuration Management
Daily Processes
Process Name Related SMFs MOF Role Cluster
Also included are the associated role cluster and the frequency with which a process
must be performed—daily, weekly, monthly, quarterly, or as-needed.
Further information about the MOF Process Model and the MOF SMFs is available at
http://www.microsoft.com/solutions/msm/techinfo/default.asp, or search for “MOF
Executive Overview,” or the name of the SMF, on TechNet at
http://www.microsoft.com/technet/default.asp.
Print Service Product Operations Guide 19
To execute the script directly from the command line, change ”%%i” to “%i”.
Dependencies
Operator must have administrative privileges on print server.
Technology Required
● Print Migrator
● Windows Script Host
Print Service Product Operations Guide 21
Procedure 3: Copy files for print server that does not have a disk
drive
1. Perform an ASR backup on the computer that does not have the disk drive.
2. Copy the Asr.sif and Asrpnp.sif files located in the %Systemroot%\Repair
directory to a computer that has a disk drive; then copy those files onto a disk.
Dependencies
● Print server should have a disk drive. Procedure 3 provides a workaround for
copying system files to a disk, but a disk drive is required for ASR.
● You must be a member of Administrators or Backup Operators group to perform
ASR.
Technology Required
Backup
Print Service Product Operations Guide 25
Dependencies
● For ASR, the recovery server must have the same hardware and disk
configuration as the server where the ASR backup was performed.
● Regular ASR backups.
● Manufacturer-supplied device drivers for mass storage devices.
Technology Required
Backup
Print Service Product Operations Guide 27
The alert is activated and will have a green status indicating that it is logging
information based on the configuration and schedule.
Server Work Queues\Queue The current length of the server work queue
Length for this CPU. A sustained queue length greater
than four might indicate processor congestion.
This is an instantaneous count, not an average
over the time interval.
Print Service Product Operations Guide 33
5. Fifteen is the default sampling time interval, although you can modify this
number. Increasing the interval will reduce the size of the log file but at the risk
of losing data. Decreasing the interval will increase the size of the log file and
provide a more granular look at the performance.
6. On the Log Files tab, click the Log file type drop-down box, and select the
output format. Choose a CSV file type if you want to be able to manipulate the
data in Excel. The data can also be displayed as a SQL Server database format.
7. Make sure the End file names with check box is selected. Use the year, month,
and day format of yyyymmdd.
8. On the Schedule tab, select the Start Log At check box, and enter the start time
for logging.
9. Click Apply, and then click OK. The log files will be created in <system
drive>\Perflogs by default.
The log is activated and will have a green status indicating that it is logging
information based on the configuration and schedule.
Print Service Product Operations Guide 35
Dependencies
● You must be a member of the Administrators group or the Performance Log user
group on the local computer, or have been delegated the appropriate authority.
● Adequate space on the disk where the log files are being created.
Technology Required
System Monitor
Server\Bytes Total/sec The number of bytes the server has sent to and
received from the network. This value provides
an overall indication of how busy the server is.
LogicalDisk\Disk Read The rate at which bytes are transferred from the
Bytes/sec disk during read operations.
5. Fifteen is the default sampling time interval, although you can modify this
number. Increasing the interval will reduce the size of the log file but at the risk
of losing data. Decreasing the interval will increase the size of the log file and
provide a more granular look at the performance.
6. On the Log Files tab, click the Log tile type drop-down box and select the output
format. Choose a CSV file type if you want to be able to manipulate the data in
Excel. The data can also be output to a SQL Server database format.
7. Make sure the End file names with check box is selected. Use the year, month,
and day format of yyyymmdd.
8. On the Schedule tab, select the Start Log At check box, and enter the start time
for logging.
9. Click Apply, and then click OK. The log files will be created in <system
drive>\Perflogs by default.
Print Service Product Operations Guide 37
Dependencies
● You must be a member of the Administrators group or the Performance Log user
group on the local computer, or have been delegated the appropriate authority.
● Adequate space on the disk where the log files are being created.
Technology Required
System Monitor
38 Managing the Windows Server Platform
For clarity, it may be easier to calculate the daily statistics on the basis of
performance objects. You should also consider that these reports will be pertinent
to the measuring of SLAs, operating level agreements (OLAs), and Underpinning
Contracts (UCs).
Print Service Product Operations Guide 39
Dependencies
Capturing service performance in performance logs
Technology Required
Excel or third-party spreadsheet application
For clarity it may be easier to calculate the daily statistics on the basis of performance
objects.
Dependencies
Capturing service performance in performance logs
Technology Required
Excel or third-party spreadsheet application
40 Managing the Windows Server Platform
This script may produce an error if no applications installed with Windows Installer
exist.
42 Managing the Windows Server Platform
Compare the unused port report and printer port report. Confirm that the unused
ports are listed in the printer port report.
44 Managing the Windows Server Platform
2. Confirm that the ports from the unused port report have been removed.
Dependencies
Windows Script Host
Technology Required
● CScript.exe
● PrnPort.vbs
● Windows Management Interface (WMI)
Print Service Product Operations Guide 45
Dependencies
CMDB
Technology Required
Windows Management Interface (WMI).
Dependencies
CMDB
Technology Required
Windows Management Interface (WMI)
48 Managing the Windows Server Platform
The numbers reported should then be analyzed to assess the Incident Management
process and to determine how to improve effectiveness and efficiency.
Dependencies
● Responding to daily service request
● Weekly service request activity report
Technology Required
None
Print Service Product Operations Guide 49
Technology Required
● Third-party tools that provide incident-management ticketing functionality
● A Microsoft Access or Microsoft SQL Server database, which can also be used to
create incident tickets
Dependencies
● Incident ticketing system
● Incidents that are responded to on a daily basis
● An SLA on how an incident is handled and when it gets escalated to the problem
management team
Technology Required
● Third-party tools that provide incident-management ticketing functionality
● Reports that can be built from an Access or SQL Server database
52 Managing the Windows Server Platform
2. Check printer status. The status of each print device should be included in this
report. The information could include:
● Whether the printer is online.
● Whether there are any approved RFCs pending
Technology Required
● System Monitor
● Printers and Faxes
54 Managing the Windows Server Platform
Along with the type of change, collect the CI that will be affected by the change.
Configuration items are objects that are subject to change. Any item that has the
possibility of changing falls under change management. For print servers these items
include:
● Print server hardware
● Print device hardware
● Domain-controller hardware
● Hardware vendor
● Server role (what is the server function: print server or domain controller?)
● Windows Server 2003 software
● Service packs
● Hotfixes
● Third-party printing software
● Monitoring software
● Backup software
● Processes and procedures
● Documentation
● RFCs
Dependencies
● An established process for initiating a change request in the operations
environment
● An identified CAB/EC roster and individuals who are contacted for emergency
changes as they relate to various print services
Technology Required
Operations team familiar with MOF/ITIL
58 Managing the Windows Server Platform
\\other_print_server\share_name
Print Service Product Operations Guide 59
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objPrinter = objWMIService.Get _
("Win32_Printer.DeviceID='<printer Device Name>'")
objPrinter.PortName = "<Port Number>"
objPrinter.Put_
Dependencies
● Since the documents you send to the printer are converted into that printer’s
language, you must redirect the documents to the same type of printer, such as a
laser, ink-jet, or dot-matrix.
● To redirect documents to another printer, you must have Manage Printers
permission for both printers.
● To redirect documents to another print server, the printer must already exist and
be shared on the print server.
● The document currently printing cannot be transferred to another printer.
● If the printer holding the print jobs is offline or has a paper jam, the document
showing the error cannot be moved to a new port.
● If a print job shows an error, all subsequent print jobs will be held until the
document is deleted from the print queue.
Technology Required
● Printers and Faxes
● Windows Management Instrumentation (WMI)
60 Managing the Windows Server Platform
Dependencies
● Printer must be shared.
● Printer must be installed on Windows 2000 or Windows Server 2003.
● You must have Manage Printers permission for the printer you want to share or
to publish.
Technology Required
Printers and Faxes
Print Service Product Operations Guide 61
""LDAP://CN=MyContainer,DC=MyDomain,DC=Company,DC=Com""
Printer publishing can also be automated using Windows Script Host. The following
is a simple command that can read an input file. Each line of the input lists the UNC
path to the printer. The one-line script is saved as a .vbs file and executed from the
command line:
Dependencies
● Printer must be shared.
● You must be a member of the Print Operators group, Domain Admins group, or
the Enterprise Admins group in Active Directory.
Technology Required
● Active Directory Users and Computers MMC snap-in
● PubPrn.vbs
● Windows Script Host
62 Managing the Windows Server Platform
Dependencies
Destination location for spooler folder has to have adequate space for spooled print
jobs.
Technology Required
Printers and Faxes
4
Processes by MOF Role
Clusters
This chapter is designed for those who want to see all processes for a single role
cluster in one place. The information is the same as that in the previous two chapters.
The only difference is that the processes are ordered by MOF role cluster.
Monthly Processes
You cannot print to a network printer. The methods used to resolve this problem are
independent of the program.
Resolution of Problem
Verify basic network connectivity. Check user rights, protocols, and share names to
determine if you can see the server. Copy files to a share on the print server using
Windows Explorer. If you cannot access the server, you may not be able to access the
printer.
Create a local printer and redirect the port to the network printer. In the ports section,
create a new port. Click Local and type the server and printer name for the printer
(for example, \\servername\printername). Use this port for the local printer. This
determines whether there is a problem with the copying of files from the server to the
workstation when you click Connect To Setup or Network Printer in the Add Printer
Wizard.
If you are printing from a Microsoft MS-DOS® based program, make sure that the
NET USE command has been run to map the LPT port to the network share. If it has,
delete it and remap the port. If the printer works now, there may be an issue with
ghosted connections. A command may need to be run in the logon script to remap the
port each time you log on. If the printer is still not printing, try typing dir > LPT <x>
where <x> is the number of the port being mapped. If it still does not print, double-
check the networking.
68 Managing the Windows Server Platform
If you are using LPR or printing to a JetDirect card using TCP/IP protocol, try the
following:
● Use the PING protocol to look for the IP address. If it fails, check the network
connectivity and verify the IP address.
● Create an LPR port to the printer, and then create a local printer connected to that
port. This is the recommended way to connect to a JetDirect printer. Sharing this
printer on the network allows the computer to act as a print queue for the
JetDirect printer.
You cannot print from a program. The methods used to resolve this problem are
independent of the program.
Resolution of Problem
● Use a simpler file. Try creating a new document with less information in it. This
determines if it is the program or something in the documents that is causing the
problem.
● Check available disk space on the system drive. If there is not enough room to
spool the job, larger jobs may fail where smaller jobs may not.
● Try to print from another operating system. If possible, test with a third operating
system. If it prints correctly, the problem is related to the output file.
When you send a print job to a printer, the print spooler might not delete the spool
file from the %SystemRoot%\System32\Spool\Printers folder when the print job is
completed, and the print spooler might repeatedly attempt to spool the print job.
Resolution of Problem
● To prevent this behavior from occurring, do not change the attributes of a spool
file while it is in the %SystemRoot%\System32\Spool\Printers folder.
● To work around this behavior, remove the read-only attribute and then delete the
spool file from the %SystemRoot%\System32\Spool\Printers folder.
Print Service Product Operations Guide 69
Print server modifies client print jobs. There are five common job-alteration problems,
each with its own resolution:
Description of Problem (1)
LPR client print jobs include PCL or PostScript code, include incorrectly printed
extended characters, or print in the print device’s default font.
Resolution of Problem (1)
This problem occurs when the LPR client sends commands to the Windows TCP/IP
print server that responds by assigning the print job the TEXT data type.
● Reconfigure the LPR clients to send different commands so that Windows assigns
the job the RAW data type.
Description of Problem (2)
Last page of a Microsoft network-based client print job does not print.
Resolution of Problem (2)
This problem occurs when client applications do not append form-feed commands to
their print jobs, and the print manager default data type is RAW. To resolve this:
● Set the default data type value to RAW [FF Auto] or RAW [FF Appended], or
reconfigure the client application to append a form feed to print jobs.
Description of Problem (3)
Extra page prints after a Microsoft network-based client print job.
Resolution of Problem (3)
This problem occurs when the client application appends form-feed characters to its
print jobs, and the print manager default data type is RAW [FF Appended] or RAW
[FF Auto]. Print jobs from Windows- based applications are always appended with
form-feed characters; print jobs from MS-DOS-based applications often do not have
form feeds at the end. The following are methods for resolving this problem:
● If client print jobs sent to the print share already have form-feed commands, set
the default data type to RAW.
● If some client print jobs include form-feed commands but others do not, set the
default data type to RAW [FF Auto].
● Reconfigure the applications to prevent them from adding the form-feed
command to print jobs.
70 Managing the Windows Server Platform
● When you restart the computer or restart the print spooler service, you receive
the following error message: “Spoolsv.exe failed to start.”
● When you open the printer’s properties, you receive the following error message:
"Out of resource error."
● When you print a document, you receive an “Access violation“ (Dr. Watson) error
message. The Dr. Watson log points to the Spoolsv.exe with error code C0000005.
You receive the following error message, and the print spooler stops: “The
instruction at ‘<address>’ referenced memory at ‘<address>’. The memory could
not be read.”
Cause of Problem
These problems may occur if the default local port monitor is changed by a third-
party program.
Resolution of Problem
5. Check the following registry key for third-party print providers. Remove any
nondefault print providers:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Pr
oviders
The default print providers are:
● Internet print providers
● LanMan print services
6. Quit the Registry Editor and restart the print spooler.
When you attempt to print or connect to a print queue, the following error message
may appear: “Could not connect to the printer <printer> because the print processor
is unknown.”
In addition, printer icons may be missing from the Printers folder.
Cause of Problem
The winprint key is corrupted or missing, or the data value contains a leading space
in the following registry location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environme
nts\
Windows NT x86\Print Processors
Resolution of Problem
When you attempt to print or configure the printer in Windows Server 2003, you
may receive the following error message:
● An application error has occurred and an application error log is being
generated.
● Spoolsv.exe
● Exception: access violation (0xc0000005), Address: <Hex address>
Cause of Problem
This problem occurs if you have many .SHD and .SPL files in the spool directory.
The default location for all printer spool files is
%SystemRoot%\System32\Spool\Printers.
Resolution of Problem
When you start a Windows Server 2003 print server, you may receive the following
error message: “Spoolsv.exe has generated an error.”
Also, if you try to view the properties of a printer, you may receive an error message
that says the print subsystem is unavailable.
Cause of Problem
The print spooler service might have stopped. This problem can also occur if the
server running Windows Server 2003 has a print driver that is designed for Windows
98 or Windows NT.
Resolution of Problem
You are unable to create or select a print monitor. One of the following symptoms
may occur:
● Double-clicking one of the installed available print monitors does nothing.
● When trying to add a port, such as an LPR Port, you may receive a Dr. Watson
access violation or application error message in Spoolsv.exe. This may be
followed by: “Specified port cannot be added. The remote procedure call failed.
The printer already exists.”
Cause of Problem
This problem is caused by the spooler service not being allowed to interact with the
desktop.
Resolution of Problem
All of the PrintQueue objects published by print servers on the same site as a given
domain controller may be detected as orphaned and deleted, even though the
corresponding printers are available in the domain.
Cause of Problem
When this occurs, the printer pruner writes a system event for each PrintQueue object
that is detected as an orphan. This can accumulate rapidly for sites with large
numbers of published print queues. If there are many published printers on the site,
the system event log may become filled with printer pruner events.
Resolution of Problem
To prevent incorrect printer pruning while a domain controller is removed from the
network, use either of the following methods:
● Before removing a domain controller from the network for an interval longer than
the directory pruning interval and directory pruning retry periods, set the
Directory Pruning Interval value to Never. These policies are located in Group
Policy Object Editor under Computer Configuration\Administrative
Templates\Printers.
● Stop the spooler service on the domain controller.
Print Service Product Operations Guide 75