# Reading Printers with PowerShell

**URL:** <https://forums.powershell.org/t/reading-printers-with-powershell/15300>\
**Category:** PowerShell Help\
**Created:** [November 27, 2020, 2:41am UTC](https://forums.powershell.org/t/reading-printers-with-powershell/15300 "2020-11-27T02:41:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krischa](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@krischa](https://forums.powershell.org/u/krischa)\
**Post date:** [November 27, 2020, 2:41am UTC](https://forums.powershell.org/t/reading-printers-with-powershell/15300/1 "2020-11-27T02:41:37Z")

</div>

Hi,

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

```
Get-WmiObject -class Win32_Printer -ComputerName $PrintSRV.Server | SELECT Name, Systemname
```

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?

&nbsp;

Best regards

Christian

---

<div class="post-metadata">

**Author:** ![chrism\_cologne](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chrism\_cologne](https://forums.powershell.org/u/chrism_cologne)\
**Post date:** [November 27, 2020, 3:11am UTC](https://forums.powershell.org/t/reading-printers-with-powershell/15300/2 "2020-11-27T03:11:42Z")

</div>

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 )

---

<div class="post-metadata">

**Author:** ![krischa](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@krischa](https://forums.powershell.org/u/krischa)\
**Post date:** [November 29, 2020, 6:59pm UTC](https://forums.powershell.org/t/reading-printers-with-powershell/15300/3 "2020-11-29T18:59:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![krischa](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@krischa](https://forums.powershell.org/u/krischa)\
**Post date:** [November 29, 2020, 11:00pm UTC](https://forums.powershell.org/t/reading-printers-with-powershell/15300/4 "2020-11-29T23:00:13Z")

</div>

Hello,

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

```
Get-Printer -Computername "Printservername"
```

Best regards

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:28pm UTC](https://forums.powershell.org/t/reading-printers-with-powershell/15300/5 "2024-05-16T20:28:14Z")

</div>


