code:

IF INGROUP("Domain Users")
DISPLAY "z:\users.txt"
ENDIF

For more information, look at the INGROUP function in the manual.

However, if this is all you need to accomplish, you may just want to use IFMEMBER.EXE from the NT Resource kit.

code:

IFMEMBER /v "Domain\Domain Admins"
IF errorlevel 1 GOTO ADMIN