Scripting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a small Lan with the following setup win2000 AD and 25 win2000
clients. I want to run a script that will delete any printer(s) that is
installad on the client machine then install a network printer with printer
quality down to 300dpi (medium) instead of 600 dpi(high). Each client is
setup to print directly to the printer via Tcp/IP printing ( Hplaser4000 on
por IP_192.168.1.250) which is why I want to delet it from the client profile
and direct the spooling to a printserver.I was able to get part of scripting
right ,where the client can logon to the network and install and setup Lab as
a default printer on the fly.However, I did not know how to configure print
quality nor how to delete the other printer. Can someone check and modify the
following script . Thanks

Set objNetwork = CreateObject("Wscript.Network")
objNetwork.AddWindowsPrinterConnection "\\Main\lab"
objNetwork.SetDefaultPrinter "\\main\lab"
Set objPrinter = GetObject("WinNT://main/lab")
objPrinter.SetInfo
 
The WS03 Resource Kit contains a scripting tool called prnadmin. You can you
that one to delete printers remotely. Or you can use the following command:
rundll32 printui,PrintUIEntry /dl /c \\remote-machine-name /n printer-name

I am not aware of a script that can change the devmode. (for the print
resolution)
 
Hello Felix,

I will check that tools out and will get back with you on the result. Thanks
for your help!
 
Back
Top