DuplexingMode

I am trying to run this but getting error. I need to changed DuplexingMode for many of my printer queues.

$hp = Get-Printer -Name RADN3WHTD1 -ComputerName UPHSEPICEPS001
Get-PrintConfiguration -PrinterName $hp.name
Set-PrinterProperty -PrinterName $hp.name -PropertyName “Config:DuplexingMode” -Value OneSided
Get-PrintConfiguration -PrinterName $hp.name

 

Error:

Set-PrinterProperty : The specified property was not found.
At line:3 char:1

  • Set-PrinterProperty -PrinterName $hp.name -PropertyName "Config:Duple …
  • CategoryInfo : ObjectNotFound: (MSFT_PrinterProperty:ROOT/StandardCimv2/MSFT_PrinterProperty) [Set-PrinterProperty], CimException
  • FullyQualifiedErrorId : HRESULT 0x80070002,Set-PrinterProperty

 

 

At first glance, based on the error, the property does not exist. It is rare to see a colon separated property.

You can try $hp | Format-List -Property * to get the available properties. I am guessing you just need to use DuplexingMode

I am unable to test.