Printer properties

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ramiro M. Sosa (rama_at_cvtci.com.ar)
Date: 04/27/04


Date: Tue, 27 Apr 2004 12:50:50 -0300

Hello,
I need some help with a vbs login.
What i have to do is to configure the same printer two times with diferent
names.
And i need to configure the paper size and the printer tray. I dont know how
can i set this properties by script.

I use this script:
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\server\printer"
PrinterDriver = "Xerox DocuPrint N17"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\server\printer" "

Server 2000, Workstations W2000 and XP Pro.

thanks in advance.

Rama.



Relevant Pages

  • Printers properties
    ... I need some help with a vbs login. ... What i have to do is to configure the same printer two times with diferent ... can i set this properties by script. ... Set WshNetwork = CreateObject ...
    (microsoft.public.windows.server.scripting)
  • Printer distribution /hide error message on logon script
    ... This is the logon script I run to disribute printers. ... rem Set WshNetwork = CreateObject ... As mentioned before, the servers are W2K ...
    (microsoft.public.scripting.vbscript)
  • Re: Weird problem with Publishers listing of available printers
    ... Publisher uses legacy APIs to access printer information. ... Instead of using Rundll32 command for assigning printers to the users, ... following .vbs script would be used: ... Set WshNetwork = CreateObject ...
    (microsoft.public.publisher)
  • Re: Default printer in script
    ... Here is a short VBScript. ... you only have to put the "Set WshNetwork ..." ... > How about if I want to add multiple printers to the script? ... >> and WSH) The code was placed inside a logon script depending on the user ...
    (microsoft.public.windows.server.scripting)
  • Re: Getting Error Running Script
    ... Set wshNetwork = CreateObject ... the "Option Explicit" command at the top makes it so ... I am getting an error running a script on Win XP Pro SP2. ... Dim fServer ...
    (microsoft.public.windowsxp.general)