Welcome Forums General PowerShell Q&A DuplexingMode

Viewing 1 reply thread
  • Author
    • #270790
      Topics: 2
      Replies: 1
      Points: 26
      Rank: Member

      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



      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



    • #270835
      Topics: 8
      Replies: 168
      Points: 818
      Helping Hand
      Rank: Major Contributor

      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.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.