IfMember.exe
============

Checks whether the current user is a member of a specified group. It is 
typically used in Windows logon scripts and other batch files.

IfMember uses its own process token to discover group membership, rather 
than querying the relevant domain controller each time it runs. This has 
a significant performance benefit, but it does mean that IfMember is only 
aware of groups on the local computer, on the computer's domain, and on 
trusted domains.

Syntax
======

ifmember [/verbose] [/list] [<groupname>[ <groupname>... ]]

Parameters
==========

Value           Description

/verbose        Prints all group matches. 

/list           Lists all groups the user is in. 

<groupname>     Specifies one or more group names (separated by a space). 

Example
=======

The following sample batch file demonstrates the use of IfMember with the 
ERRORLEVEL parameter in If.exe.

   ifmember Administrators
   if not errorlevel 1 exit

Any further statements run only if the user is a member of the Administrators group.

See also
========

For information about If.exe, see "If: Command-line Reference" in Help and Support Center.
