none
VB Script Add Printer work fine in Windows 7 but fail in Windows 10 RRS feed

  • Question

  • Dear All,

    I have using a VB script ( startup script) in my office which mapping the printer when users login the computer (Under Active Directory environment).

    The script first define the network printer :

    pServer1(ABC) = "\\printsvrABC\"

    oNet.AddWindowsPrinterConnection pServer1(ABC) & "da_hp8150"

    It works fine in Windows 7 PC, however it fail in Windows 10 PC, I need to do the following :

    oNet.AddWindowsPrinterConnection "\\printsvrABC\da_xe4475np"

    My question is, is the pre-defined printer in VB script cannot work in Win10 PC ?

    Many thanks,

    Pong


    • Moved by Bill_Stewart Wednesday, December 12, 2018 8:12 PM Unanswerable drive-by question
    Friday, August 24, 2018 7:22 AM

All replies

  • You can also use Group Policy Preferences to deploy printers instead of a startup script.

    If that doesn't work out for you. Since your VBScript is broken, it might be time to move to PowerShell.

    Add-Printer -ConnectionName "\\printsrvABC\da_xe4475np"

    Friday, August 24, 2018 7:58 AM
  • It should work.  Does the powershell version work?  Can you ping the server?  You might have to type out the fully qualified name.

    Friday, August 24, 2018 6:18 PM