Logon script issue with "IFMember"

  • Thread starter Thread starter Guest
  • Start date Start date
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

:ops
ifmember "ops"
if not errorlevel 1 goto finance
net use q: \\server\share2
GoTo NextSection
 
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

:ops
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 "
 
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
 
Back
Top