Logon script issue with "IFMember"

G

Guest

Is anyone else having issues with the IfMember utility? I have a script with
some pretty basic statements for mapping drives based on group membership
with IfMember and it seems that the tool caches the groups or something.
Seemingly after enough rebbots and time it will update itself but it takes
quite some time. Here's the basics of that area of the script:

If Exist q: (net use /delete q:) else (echo "No drive currently mapped")
:sales
ifmember "sales"
if not errorlevel 1 goto ops
net use q: \\server\share
GoTo NextSection

:blush:ps
ifmember "ops"
if not errorlevel 1 goto finance
net use q: \\server\share2
GoTo NextSection
 
J

Jerold Schulman

Is anyone else having issues with the IfMember utility? I have a script with
some pretty basic statements for mapping drives based on group membership
with IfMember and it seems that the tool caches the groups or something.
Seemingly after enough rebbots and time it will update itself but it takes
quite some time. Here's the basics of that area of the script:

If Exist q: (net use /delete q:) else (echo "No drive currently mapped")
:sales
ifmember "sales"
if not errorlevel 1 goto ops
net use q: \\server\share
GoTo NextSection

:blush:ps
ifmember "ops"
if not errorlevel 1 goto finance
net use q: \\server\share2
GoTo NextSection


http://support.microsoft.com?kbid=148385 "IFMEMBER.EXE Fails If User Is Member of More Than 15 Groups "
http://support.microsoft.com?kbid=150733 "FPNW Groups Not Recognized from Trusted Domain "
http://support.microsoft.com?kbid=290794 "Ifmember causes Error 122 "
 
G

Guest

Hey Jerold,
So I confirmed that the test user here is not in more than 15 groups and
this is not a trusted domain. The weird thing here is that eventually this
all works but it takes time. Is there a tool like IFMember that doesn't
cache this type of stuff that anyone knows of?
Thanks,
Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top