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