I am trying to write a select case statement that checks for the OS type then is supposed to check if a specific domain group exists in the local administrators group. What I have so far is posted here below. How do I write a statment that can verify the domain group domain\desktop team exist in the local administrators group.

$w2kwxp = @PRODUCTTYPE = "Windows 2000 Professional" OR @PRODUCTTYPE = "Windows XP Professional"

SELECT
CASE $w2kwxp = 0
GOTO ENDLGC
CASE ???domain group is in local group??? = true go to end, false continue to execute select statement
CASE INGROUP ("\\@WKSTA\Administrators")
SHELL '%ComSpec% /c net localGroup Administrators "domain\Desktop Admins" /Add'
ENDSELECT
;
:ENDLGC