Link to home
Start Free TrialLog in
Avatar of pauljnye
pauljnyeFlag for Afghanistan

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
Avatar of tonyteri
tonyteri
Flag of United States of America image

Try this link it is very detailed and helpful on the ifmember comand.

/tt
Avatar of pauljnye

ASKER

What link?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that worked.  In fact I tried that before you answered.  But thanks anyway!
Paul