Creating new login script using Ifmember.exe

Joined
May 21, 2012
Messages
1
Reaction score
0
Hi all

We are in the process of testing a new login script that uses Ifmember.exe. While using the script as shown below, the home drive is completely lost. The user has access to re-map their home drive but somehow this scripting has prevented the profile ascertaining and displaying the home drive. Other more simplistic scripts do not seem to have an issue. Is there a known problem with ifmember.exe?

Users have Windows 7 environment.

@echo off
%verify off
set delay=60
PasswordExpirePrompt
net use /persistent:no
net use I: /D /y 2>nul >nul
net use R: /D /y 2>nul >nul

con2prt /f


:LA-Administration&RO
ifmember "LA-Administration" "LA-Administration-RO"
if not errorlevel 1 goto LA-Reports&RO
call LA-Administration.bat


:LA-Reports&RO
ifmember "LA-Reports" "LA-Reports-RO"
if not errorlevel 1 goto end
call LA-Reports.bat

:end
exit
 

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