\SERVER\NETLOGON\ifmember "Accountants" "Accounts Payable"
REM 0=none, 1=one of the groups, 2 =two of the listed groups
if ERRORLEVEL 1 goto apac%errorlevel%<br>
<br>
:sales
\SERVER\NETLOGON\ifmember "Sales"
If NOT ERRORLEVEL 1 goto common
net use s: \ServerName\Sales$ /persistent:no
goto common<br>
<br>
:apac1
REM Either a member of Accountants or Accounts Payable
\SERVER\NETLOGON\ifmember "Accountants"
if ERRORLEVEL 1 goto acct
net use x: \ServerName\ap$ /persistent:no
goto sales<br>
<br>
:acct
net use y: \ServerName\acct$ /persistent:no
goto sales<br>
<br>
:apac2
REM Membership in both Accountants and A/P
net use x: \ServerName\ap$ /persistent:no
net use z: \ServerName\accctap$ /persistent:no
goto acct<br>
<br>
:common
net use h: /home
exit