Solved

ifmember maps the wrong groups

Posted on 2003-10-28
4
406 Views
Last Modified: 2013-12-04
If i run ifmember /list it displays the correct groups

But it seems to map the first group in the script which looks like the following..


:52Commerce
%logonserver%\ifmember Domain\52Commerce
if not errorlevel 1 goto 53Fresno
net use j: \\server\Commerce
0
Comment
Question by:torino420
  • 2
  • 2
4 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 250 total points
Comment Utility
I guess ifmember.exe is running just fine ...
It's just the line
%logonserver%\ifmember Domain\52Commerce
that is not correct.
You'll (probably) want
%logonserver%\netlogon\ifmember.exe Domain\52Commerce
(or just leave the path out completely if this is running in a logon script and ifmember is in the netlogon share).
0
 

Author Comment

by:torino420
Comment Utility
That did it! not sure wether it was the .exe extension added and/or the netlogon, but it works.
By the way, if I leave the %logonserver% parameter out, it says ifmember is an unrecognized command.

Anyways your solution worked, thanks a bunch.
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
It wasn't the .exe extension; there's just no share "ifmember" on your server ;)
I just like to add the .exe extension for external programs in my scripts because it makes them easier to read (at least for me); you can see easier which is an external command, and it makes it easier to identify which external tools are used in a script in case you forgot to document it ...
0
 

Author Comment

by:torino420
Comment Utility
oh yeah....DUH :)

thanks again.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

10 Experts available now in Live!

Get 1:1 Help Now