I've used the "If InGroup" command for several years now. Make sure you have the service installed on your Domain Controller that answers the call for If InGroup "KXRPC.exe". An example of the code I use is below.

 Code:
If InGroup ("groupname")=1	
   Run "\\10.x.x.x\webfilter.exe"
EndIf

or
 Code:
If InGroup ("groupname") = 1
   Use M: "\\10.x.x.x\sharename"
EndIf


Edited by Mart (2010-06-22 03:17 PM)
Edit Reason: Please use code tags when posting code.