Basic Script for Printer Addition based on AD Group Membership

Discussion in 'Scripting' started by Graeme Froggatt, Nov 20, 2003.

  1. Hi,

    I can get a basic script to add printers on logon using
    these basic commands:

    Set wshNetwork = CreateObject("WScript.Network")
    wshNetwork.AddWindowsPrinterConnection "\\servername\prints
    wshNetWork.SetDefaultPrinter "\\NRC21\Canon GP605"

    But, would like to add different printers depending on
    Users AD group membership.

    Can someone please post for me a basic script to achieve

    Graeme Froggatt, Nov 20, 2003
    1. Advertisements

  2. Hi

    For some examples on this, take a look under "Group Membership Tests" and
    "Logon Scripts" under "Free VBScript Code" at

    You will also find logon script examples with group testing at as well.

    E.g. here:
    Torgeir Bakken (MVP), Nov 21, 2003
    1. Advertisements

  3. Thanks very much for that, I'll have a look.
    Graeme Froggatt, Nov 23, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.