I have a HP LaserJet 5100 printer.I run the following script to receive its
capability description.
It is strange that I receive "color" capability description,though HPLJ5100
is a black and white printer.Why?

######################VBS################################
Set colPrinters=objWMIService.instancesof("win32_printer")
For Each objPrinter in colPrinters
WScript.Echo "Device Name: " & objPrinter.name
CapabilityDescriptions= objPrinter.CapabilityDescriptions
For Each Capability In CapabilityDescriptions
WScript.Echo Capability
next
next

RE: about CapabilityDescriptions by CoreyThomasMCSEMCSAMCDBA

CoreyThomasMCSEMCSAMCDBA
Thu Mar 20 13:16:24 CDT 2008

Hi,

That string is just a free-form return from the driver. I'm not sure why
the driver is returning color when it's B&W but it sounds like an issue with
the driver not WMI.

-Corey
http://vbscripter.blogspot.com


"£¤£¤£¤" wrote:

> I have a HP LaserJet 5100 printer.I run the following script to receive its
> capability description.
> It is strange that I receive "color" capability description,though HPLJ5100
> is a black and white printer.Why?
>
> ######################VBS################################
> Set colPrinters=objWMIService.instancesof("win32_printer")
> For Each objPrinter in colPrinters
> WScript.Echo "Device Name: " & objPrinter.name
> CapabilityDescriptions= objPrinter.CapabilityDescriptions
> For Each Capability In CapabilityDescriptions
> WScript.Echo Capability
> next
> next
>
>
>

RE: about CapabilityDescriptions by urkec

urkec
Thu Mar 20 16:41:03 CDT 2008

"Corey Thomas - MCSE/MCSA/MCDBA" wrote:

> Hi,
>
> That string is just a free-form return from the driver. I'm not sure why
> the driver is returning color when it's B&W but it sounds like an issue with
> the driver not WMI.
>
> -Corey
> http://vbscripter.blogspot.com
>
>
> "£¤£¤£¤" wrote:
>
> > I have a HP LaserJet 5100 printer.I run the following script to receive its
> > capability description.
> > It is strange that I receive "color" capability description,though HPLJ5100
> > is a black and white printer.Why?
> >
> > ######################VBS################################
> > Set colPrinters=objWMIService.instancesof("win32_printer")
> > For Each objPrinter in colPrinters
> > WScript.Echo "Device Name: " & objPrinter.name
> > CapabilityDescriptions= objPrinter.CapabilityDescriptions
> > For Each Capability In CapabilityDescriptions
> > WScript.Echo Capability
> > next
> > next
> >
> >
> >

There is also Win32_PrinterConfiguration.Color property, maybe it returns
correct values.

--
urkec

Re: about CapabilityDescriptions by £¤£¤£¤

£¤£¤£¤
Fri Mar 21 04:51:42 CDT 2008

urkec:
Win32_PrinterConfiguration.color is not able to return the correct color
description either.

Corey£º
You say it is related with the printer driver. It sounds correct. In the
test-printing page, however, I can see " support color: no ",while
Win32_Printer.CapabilityDescriptions return "color".
Is it strange, isn't it?