VBS Printer script checking PC Group membership
I'm using some fairly basic vbs login scripts to map my printers in (below). (I've had to resort back to this becuase GPP has proved to be not as efective as I'd like).
Is there a way to find and check a PC's Group membership as part of the script?
Specifically I want to see if the PC is a member of a windows security group and if it is apply one setting and if it isn't a different one.
Current script for reference
rem ** Next line must not be deleted **
Set WshNetwork = CreateObject("WScript.Network")
rem ** This will delete existing printers **
On Error Resume Next
Set oPrinters = WshNetwork.EnumPrinterConnections
For i = 1 to oPrinters.Count - 1 Step 2
rem ** Setup new printer connection **
rem ** Setup default printer **