Map Printer Drive

Viewing 1 post (of 1 total)
  • Author
  • Avatar


    Silly question of the day, We have changed printer in our office I have load the driver on the windows server 2003. I have wrote a batch files to map the printer driver

    Option Explicit
    Dim objNetwork, strUNCPrinter
    strUNCPrinter = “[URL=”file://\dcMainoffice”]\dcMainoffice[/URL]”
    Set objNetwork = CreateObject(“WScript.Network”)
    objNetwork.AddWindowsPrinterConnection strUNCPrinter
    ‘ Here is where we set the default printer to strUNCPrinter
    objNetwork.SetDefaultPrinter strUNCPrinter
    WScript.Echo “Default Printer is : ” & strUNCPrinter

    Can I force the each user when they log on to run this? I have saved the file ad *.vbs

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.