V
V
varfi2021-01-19 11:28:31
cmd/bat
varfi, 2021-01-19 11:28:31

Is it possible to add all the printers available on the grid at once via cmd?

I am writing a batch file to add a printer, here is the code (comp_name \ print_name, the names are taken from the bulldozer, Schaub does not shoot once again):

cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\comp_name\print_name"
exit

Is it possible using this command to add at once all available printers on the network like "\\*\*" using asterisks, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
ZardoZAntony, 2021-02-26
@ZardoZAntony

No you can't with this team.
You need to write your own PowerShell script that will scan the entire network, find all printers, and call this command as it is found.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question