List print server printers installed from a remote station

0

Work in a company that has the following structure:

Each city in my state has a head office with a server that is also a print server, the printers are located here.

I use the Systernals psexec together with a command to install the printers, as shown in the following example:

psexec \172.20.19.218 cmd /c rundll32 printui.dll,PrintUIEntry /ga /n\SRV-1112\PRT-2181
psexec \172.20.19.218 cmd /c start /wait sc stop spooler
psexec \172.20.19.218 cmd /c start /wait sc start spooler

However, before doing the installation, I would like to know if the printer is already installed on the user's station, without having to contact it and access remotely via vnc. But the commands I have never show these printers, only the Windows virtual printers and other programs, as in the example below:

PS C:\Users\paulogoncalves> wmic /node:172.20.19.218 printer list status
Name                           Status
TASKalfa 3050ci                Degraded
Send To OneNote 2016
PDFCreator                     Unknown
Microsoft XPS Document Writer  Unknown
Microsoft Print to PDF         Unknown
Fax                            Unknown
doPDF 8                        Unknown

Note that the printer \\ SRV-1112 \ PRT-2181 is not listed. Now, if I do this query on my local workstation, the printers appear:

PS C:\Users\paulogoncalves> wmic printer list status
Name                           Status
Send To OneNote 2016           Unknown
PDFCreator                     Unknown
Microsoft XPS Document Writer  Unknown
Microsoft Print to PDF         Unknown
Fax                            Unknown
doPDF 8                        Unknown
\srv-1378\PRT-1000            Unknown
\srv-1419\PRT-1061            Unknown
\172.20.16.40\PRT-2181        Unknown

The question is: Is there any command that can even list remote printers (this can be in powershell, vbscript, or bat) or is it a network block that prevents the display?

    
asked by anonymous 06.09.2018 / 20:15

0 answers