Solved

How to export  status of printer queues in windows 2003 server

Posted on 2011-02-28
4
664 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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