Map Printer Drive

  • This topic has 5 replies, 4 voices, and was last updated 9 years ago by AvatarAnonymous.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    jwc1972
    Member
    #155622

    Hello

    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
    WScript.Quit

    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.