Windows 7 Scripts
February 14th, 2019
If you know the name of the printers (I.E. they’re the same on all systems) you can create a batch script with the command
rundll32 printui.dll,PrintUIEntry /dl /n Printer1
rundll32 printui.dll,PrintUIEntry /dl /n Printer2
where printer1/2 are the names as they’re exactly spelt in devices/printers
as for learning, just practice or find something you need to and figure out how using Stackoverflow, etc. I personally use a bash port to work with batch/Powershell as I’m a linux guy
http://kent.dl.sourceforge.net/project/win-bash/shell-complete/latest/shell.w32-ix86.zip
the command only works for network printers? i’m trying to figure out a script program and run it from desktop and it deletes the devices and printers from each computers with one click and not have to click delete each ones for four times.
devices like fax, xps printer and two others
Please don't double-post, use the edit button instead. Members are allowed to double or triple post only if their previous post has exceeded the maximum characters limit.
AzN_Uber Leet
the command only works for network printers? i'm trying to figure out a script program and run it from desktop and it deletes the devices and printers from each computers with one click and not have to click delete each ones for four times.
rundll32 printui.dll,PrintUIEntry /dl /n Printer2 is for local rundll32 printui.dll,PrintUIEntry /dn /n Printer2 would be for a network printer
rundll32 printui.dll,PrintUIEntry /dl /n Fax works fine for me, but obviously it has to be ran in elevated command prompt (right click cmd > run as admin or set the batch file to run as admin in compatibility options)