Simple question about 'ifmember'

Posted on 2005-04-11
Last Modified: 2010-03-18
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...

ifmember accounts
if not errorlevel 1 goto next
echo Connecting to Accounts...
net use N: \\server1\accounts$

Question by:pauljnye
    LVL 7

    Expert Comment

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


    Author Comment

    What link?
    LVL 82

    Accepted Solution

    ifmember is not installed by default; it's part of the Resource Kit. You can start it from a network share, though; if you're using the logon script from the user's profile, you can just put ifmember.exe into the netlogon share as well.
    The drive was mapped because ifmember wasn't found; this produced errorlevel 1, and so the drive was mapped.

    Author Comment

    that worked.  In fact I tried that before you answered.  But thanks anyway!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
    Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now