Solved

How to export  status of printer queues in windows 2003 server

Posted on 2011-02-28
4
656 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
Comment Utility
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
Comment Utility
Vahid

Thanks will try this out and let you know

0
 

Author Comment

by:nsgrewal01
Comment Utility
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
Comment Utility
Command is straightforward to run and with key word it was easy to search on MS website
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

16 Experts available now in Live!

Get 1:1 Help Now