A community member has associated this post with a similar question:
Mapping multiple printers by security group with VB
Only moderators can edit this content.
Adding printers via print server by security group using VB
Hello all. I'm having issues adding printer on a print server by security group via VBS script. Recently an issue came up that requires me to use this method instead of group policy. I'm still rather new to this and need guidance on how to modify my current script which does work but unfortunately it simply adds every printer listed while we want to check if the user is part of each separate printers security group. If they are member of that specific printers security group add the printer.
Option Explicit
Dim WshNetwork
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\testprintserver\testprinter1"
WshNetwork.AddWindowsPrinterConnection "\\testprintserver\testprinter2"
WshNetwork.AddWindowsPrinterConnection "\\testprintserver\testprinter3"
WshNetwork.AddWindowsPrinterConnection "\\testprintserver\testprinter4"