Reading Printers with PowerShell

Welcome Forums General PowerShell Q&A Reading Printers with PowerShell

Viewing 3 reply threads
  • Author
    Posts
    • #274563
      Participant
      Topics: 1
      Replies: 2
      Points: 16
      Rank: Member

      Hi,

      I am trying to get all Networkprinters from our Printservers. For this i use the following PowerShell-Command:

      It works fine if the printserver OS is Windows Server 2016 or higher. But now the problem. We still have one old printserver with Windows Server 2008 R2. This server only gives me the local XPS Printer but not the network printers with this script. I also tryed to run it with “Invoke-Command” but with the same result.

      Is there another way to get all printers from the old printserver?

       

      Best regards

      Christian

      • This topic was modified 1 month, 3 weeks ago by Krischa56.
      • This topic was modified 1 month, 3 weeks ago by Krischa56.
    • #274584
      Participant
      Topics: 0
      Replies: 9
      Points: 55
      Helping Hand
      Rank: Member

      We donot have any Printerserver (anymore). So it is picking in the dark 🙂

      Does this help?

      Get-CimInstance  win32_printer -Computername $($PrintSRV.Server )
      gwmi win32_printer -computername $($PrintSRV.Server )
    • #275214
      Participant
      Topics: 1
      Replies: 2
      Points: 16
      Rank: Member

      It does not help. It is the same result. I don’t know why only the Windows Server 2008 R2 does this shit. 🙁

    • #275247
      Participant
      Topics: 1
      Replies: 2
      Points: 16
      Rank: Member

      Hello,

      sometimes it is so easy. I use this and it works on all server.

      Best regards

Viewing 3 reply threads
  • You must be logged in to reply to this topic.