Hello Everyone,

Below is code we use to map over network shared printers however was
wondering if there was some VB script code I could use to put a condition on
it. The condition being, if this person logs onto computer A then the
printers are mapped over but if the same user logs into computer B then the
printers are not mapped over. Any help on this would be great.

If InGroup( "Active Directory Printer Group" ) Then
Call AddPrinter ("domain", "computername", "printer name")
objWshNetwork.SetDefaultPrinter "UNC path to printer"
End If

Thank you
Alex Anderson