• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

printer directory list

I want to create a batch file which should show me all or specific printer i have listed under printers and faxes on local or remote computers? thanks
0
tech2010
Asked:
tech2010
  • 2
1 Solution
 
thepcwizardCommented:
You could use Prnmngr.vbs -l to list all the printers.
See the following information -
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prnmngr.mspx?mfr=true

To run the batch file on remote boxes to gather your data, download SysInternals tool, PsExec.exe.  
The entire suite of tools has a link on Microsoft's site is at:  http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx.  Or a direct link:  http://download.sysinternals.com/Files/SysinternalsSuite.zip

Let me know if you need further direction.
0
 
tech2010Author Commented:
can i list specific printer using prnmngr.vbs instead of listing all the printers? thanks
0
 
thepcwizardCommented:
Prnmngr.vbs -l|find "PutPrinterNameHere"

You will get the following output for a match, and a blank line if nothing is found.
Printer Name PutPrinterNameHere
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now