nsgrewal01
asked on
How to export status of printer queues in windows 2003 server
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Vahid
It worked only issue was finding the jobs stuck in queue which per my guess and test is JobCountSinceLastReset
Thanks
Navi
It worked only issue was finding the jobs stuck in queue which per my guess and test is JobCountSinceLastReset
Thanks
Navi
ASKER
Command is straightforward to run and with key word it was easy to search on MS website
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
PowerManagementCapabilitie
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