I am currently using the below to see if several Global Groups are in the workstations Local Administrators group. Is there a function in Kix that I could do this faster, less shell-y. This works fine but I would rather use a built in function.

thanks
code:
$group = "@domain\domain admins"
Shell '%comspec% /c net localgroup administrators | find /i "$group" > nul'
If @error = 1
Shell '%comspec% /c net localgroup administrators "$group" /add > nul'
EndIf

_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)