?
Solved

Script to create a list of printers and have a no selected install option.

Posted on 2007-10-11
7
Medium Priority
?
195 Views
Last Modified: 2010-04-12
Hi,

I need a script when clicked will display all printers in the domain.Not the path but just the Description and i should have a No selection
ex:
1. 1Floor Printer
2. 2nd Floor Print
So on.
When selected 1 the 1st floor printer should be installed in the local machine
Regards
Sharath
0
Comment
Question by:bsharath
  • 4
  • 3
7 Comments
 
LVL 26

Accepted Solution

by:
Farhan Kazi earned 2000 total points
ID: 20071449
Hi Sharath,
Following statement will list all the printers.

Click Start -> Run -> Cmd.exe  -> OK

DSQuery * -Filter "(objectCategory=printQueue)" -Attr printerName Location

Hope this helps!
Farhan
0
 
LVL 11

Author Comment

by:bsharath
ID: 20071458
Farhan i would require a selection.Like if i select 1 or 2 or 3 then the printer has to be installed in the local machine where i select the printer.
0
 
LVL 26

Expert Comment

by:Farhan Kazi
ID: 20071471
Ohoh! sorry mate I have no idea about that...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Author Comment

by:bsharath
ID: 20079081
0
 
LVL 26

Expert Comment

by:Farhan Kazi
ID: 20087287
Nop! Im on Eid Holidays :)
0
 
LVL 11

Author Comment

by:bsharath
ID: 20090681
Ohh ok have fun...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to solve seemingly unsolvable printer issues. Users sometimes run into printing issues where all the normal steps do not seem to work. Well the steps below can show users how to take one extra step beyond the normal steps needed to remove old…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question