Solved

How to export  status of printer queues in windows 2003 server

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Causes of paper jams:The following are the main causes of paper jams. Guides:If the guides for the paper are not set correctly they may cause the paper to enter at an angle. You should ensure that the guides are set correctly for the paper type a…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now