I'm a little newbie in powershell and I need your help with this problem.
I need to Get-PrinterConfigurationGet-PrinterConfiguration
and Get-PrinterGet-Printer
to work together.
I found this code: $Printers = Get-Printer * Foreach ($Printer in $Printers){Get-PrintConfiguration -PrinterName $Printer.name}
$Printers = Get-Printer *
Foreach ($Printer in $Printers){Get-PrintConfiguration -PrinterName $Printer.name}
But I still need some info that Get-PrinterGet-Printer
has, but I don't know how to make it work all together.
For instance I need: Name
Name
, DriverNameDriverName
, PortNamePortName
, CommentComment
, LocationLocation
from Get-PrinterGet-Printer
and
ColorColor
, DuplexingModeDuplexingMode
from Get-PrintConfigurationGet-PrintConfiguration
.
May you guys help me with this?
Thanks in advance!