Windows 7 Scripts

February 14th, 2019

Does anyone have a script that can run on windows 7 to delete all the default printers (i think there are two in windows 7 printers) just by running a script? And a script to enable the BIOS Power to all “Enabled” and set time to 20:00 w/ out doing it manually? I work with hundreds of computers with win7 and it is a pain in the ass the do it manually over and over and over… please help. THANKS! Also, I want to learn how to write scripts. Where do I start to better understand the basics first and so on… THANKS!
Answer #1
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
Answer #2
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.
Answer #3
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

Answer #4
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)

 

| Sitemap |