Does the Ingroup function work with local groups? I'd like to check for membership in the local administrators group before trying to apply patches, etc. I've tried the following with inconsistent results (in a script launched with the /f switch):

If InGroup("\\" + @WKSTA + "\administrators") <> 1
MESSAGEBOX ("Your Logon does not have permissions to perform a vital update!!", "Contact Technical Support Services 6627!", 48)
goto "endit"
endif