Solved

How to export  status of printer queues in windows 2003 server

Posted on 2011-02-28
4
666 Views
Last Modified: 2013-12-15
We have an application that prints to quite many printers and all of these printers are defined on one Windows 2003 server with service pack 2. Issue is we need a program or method to export information on the status of the printer queues, documents in queue, status, comments location basically the information shown in Printer and faxes folder.

I know Windows 2003 server R2 has some utilities but we cant set the print server as ye.

Our options are porgraming using Windows API or looking for shareware which can retrieve this data in a CSV file. Appreciate any pointers
0
Comment
Question by:nsgrewal01
  • 3
4 Comments
 
LVL 15

Expert Comment

by:vahiid
ID: 35004963
did you try using wmic command line? something like:

wmic /node:{printservername} printer get Name, Location, Comment, Queued, Status

These are the other items you can add to the get query:

Attributes  
Availability  
AvailableJobSheets
AveragePagesPerMinute
Capabilities
CapabilityDescriptions
Caption
Char
SetsSupported
Comment
ConfigManagerErrorCode
ConfigManagerUserConfig
CreationClassName  
CurrentCapabilities
CurrentCharSet
CurrentLanguage
CurrentMimeType
CurrentNaturalLanguage
CurrentPaperType
Default
DefaultCapabilities
DefaultCopies
DefaultLanguage
DefaultMimeType
DefaultNumberUp
DefaultPaperType
DefaultPriority
Description
DetectedErrorState
DeviceID
Direct
DoCompleteFirst
DriverName
EnableBIDI
EnableDevQueryPrint
ErrorCleared
ErrorDescription
ErrorInformation
ExtendedDetectedErrorState
ExtendedPrinterStatus
Hidden
HorizontalResolution
InstallDate
JobCountSinceLastReset
KeepPrintedJobs
LanguagesSupported
LastErrorCode
Local
Location
MarkingTechnology
MaxCopies
MaxNumberUp
MaxSizeSupported
MimeTypesSupported
Name
NaturalLanguagesSupported
Network
PaperSizesSupported
PaperTypesAvailable
Parameters
PNPDeviceID
PortName
PowerManagementCapabilities
PowerManagementSupported
PrinterPaperNames
PrinterState
PrinterStatus
PrintJobDataType
PrintProcessor
Priority
Published
Queued
RawOnly
SeparatorFile
ServerName
Shared
ShareName
SpoolEnabled
StartTime
Status
StatusInfo
SystemCreationClassName
SystemName
TimeOfLastReset
UntilTime
VerticalResol

Cheers,
Vahid
0
 

Accepted Solution

by:
nsgrewal01 earned 0 total points
ID: 35008867
Vahid

Thanks will try this out and let you know

0
 

Author Comment

by:nsgrewal01
ID: 35011708
Vahid

It worked  only issue was finding the jobs stuck in queue which per my guess and test is JobCountSinceLastReset

Thanks

Navi
0
 

Author Closing Comment

by:nsgrewal01
ID: 35045662
Command is straightforward to run and with key word it was easy to search on MS website
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question