pauljnye
asked on
Simple question about 'ifmember'
I have a small part of my login script that uses ifmember to control acces to a mapped network drive via membership to a group. It worked great on the first couple of computers, but I discovered that on one computer it said the command ifmember was unrecognised, and then went on to map the drive anyway (even though they were not in the group) Does ifmember need to be installed on all workstations too? Here is an example of my script...
:accounts
ifmember accounts
if not errorlevel 1 goto next
echo Connecting to Accounts...
net use N: \\server1\accounts$
:next
:accounts
ifmember accounts
if not errorlevel 1 goto next
echo Connecting to Accounts...
net use N: \\server1\accounts$
:next
ASKER
What link?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that worked. In fact I tried that before you answered. But thanks anyway!
Paul
Paul
/tt