I wish to list all printer queues on a list of print servers in PowerShell (or wrapped native cmd command if necessary).
The difficulty here is that I don't have admin rights on the servers, so I cannot use WMI to query them.
I have tried to use Test-Path \\serverName\queueName
to no avail (seemed a good option to me, since for instance start \\serverName\queueName
opens the queue just fine).
How can I achieve this?
EDIT: I'm running Windows 7 and I don't know which OS runs on the servers (2008, 2012 maybe).
If they are published in Active Directory, you could look up the printqueue objects:
Edit:
Without being AD published, then you could enumerate them from the SMB shares for the Point and Print Queues using
net view \\servername