Logon script issue with "IFMember"

Dan

Distinguished
Dec 31, 2007
2,208
0
19,780
Archived from groups: microsoft.public.win2000.active_directory (More info?)

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

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

Guest

Guest
Archived from groups: microsoft.public.win2000.active_directory (More info?)

On Fri, 3 Jun 2005 11:21:01 -0700, Dan <Dan@discussions.microsoft.com> wrote:

>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
>
>:eek: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 "
 

Dan

Distinguished
Dec 31, 2007
2,208
0
19,780
Archived from groups: microsoft.public.win2000.active_directory (More info?)

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

"Jerold Schulman" wrote:

> On Fri, 3 Jun 2005 11:21:01 -0700, Dan <Dan@discussions.microsoft.com> wrote:
>
> >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
> >
> >:eek: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

Guest
Archived from groups: microsoft.public.win2000.active_directory (More info?)

Try tips in the 'Tips & Tricks' at http://www.jsifaq.com

4905 » An alternative to the Ifmember command.

5871 » Freeware MemberOf utility.









On Mon, 6 Jun 2005 03:49:17 -0700, Dan <Dan@discussions.microsoft.com> wrote:

>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
>
>"Jerold Schulman" wrote:
>
>> On Fri, 3 Jun 2005 11:21:01 -0700, Dan <Dan@discussions.microsoft.com> wrote:
>>
>> >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
>> >
>> >:eek: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 "
>>
>>