Solved

ifmember maps the wrong groups

Posted on 2003-10-28
4
407 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 83

Accepted Solution

by:
oBdA earned 250 total points
ID: 9640786
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
ID: 9642797
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 83

Expert Comment

by:oBdA
ID: 9642886
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
ID: 9642898
oh yeah....DUH :)

thanks again.
0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As I write this article, I am finishing cleanup from the Qakbot virus variant found in the wild on April 18, 2011.  It was a messy beast that had varying levels of infection, speculated as being dependent on how long it resided on the infected syste…
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

20 Experts available now in Live!

Get 1:1 Help Now