• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    Set standard printer with a VB script


    dim objNetwork
    set objNetwork = createobject(“Wscript.Network”)

    WScript.Sleep 1000 * 60 * 1
    objNetwork.SetDefaultPrinter “PrinterName”

    Just make a .vbs file. You can use it in a startup script (GPO)
    The line: WScript.Sleep 1000 * 60 * 1
    makes an delay of one minute.