The code below is what I have currently,
NET USE G: \\Fileserver1\SHARE\AllShare /PERSISTENT:No
IF ERRORLEVEL 1 (
ECHO Error mapping drive G:
)
NET USE H: \\Fileserver1\SHARE\Management /PERSISTENT:No
IF ERRORLEVEL 1 (
ECHO Error mapping drive H:
)
NET USE I: \\Fileserver1\SHARE\Security /PERSISTENT:No
IF ERRORLEVEL 1 (
ECHO Error mapping drive H:
)
The scenario is this, I want this script to run at logon but the user it is running for does not need or have access to \\Fileserver1\SHARE\Security but since there are multiple users some with need to the path, I want to use this as a generic script that assigns permissions only to users who have NFS permissions. The problem is once it gets to a user that doesn't have rights it pauses and asks for a password, I would like it to muscle through mapping only the drives that each user has permissions to and not stopping on ACL denying access...
NET USE G: \\Fileserver1\SHARE\AllShare /PERSISTENT:No
IF ERRORLEVEL 1 (
ECHO Error mapping drive G:
)
NET USE H: \\Fileserver1\SHARE\Management /PERSISTENT:No
IF ERRORLEVEL 1 (
ECHO Error mapping drive H:
)
NET USE I: \\Fileserver1\SHARE\Security /PERSISTENT:No
IF ERRORLEVEL 1 (
ECHO Error mapping drive H:
)
The scenario is this, I want this script to run at logon but the user it is running for does not need or have access to \\Fileserver1\SHARE\Security but since there are multiple users some with need to the path, I want to use this as a generic script that assigns permissions only to users who have NFS permissions. The problem is once it gets to a user that doesn't have rights it pauses and asks for a password, I would like it to muscle through mapping only the drives that each user has permissions to and not stopping on ACL denying access...