Link to home
Start Free TrialLog in
Avatar of Henrik Rosager Pedersen
Henrik Rosager PedersenFlag for Denmark

asked on

Login script asks for username and password

Hi,
 I have a server running Server 2008. There are - let's say - 5 shares on the server.  Some users needs access to all shares, others only access to 3 shares and another group of users needs access to 4 shares (this is just an example).

I have then made a simple logon.bat file so I can map the drives with NET USE command.

Now here is the problem. All users are running the same script at startup. This means that some users also tries to map drives they don't hae access to. So when they run the script - it stalls and ask for username/password.

Can I somehow add a command after each NET USE - so the script just continues - and just skips the mapping the user do not have access to?

P.S. If I run the script manually - and when it asks for username/password - I can just hit "Enter" and the script continues (only adding the drives the user have access to).

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_6582184
Member_2_6582184
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pramod Ubhe
If you want to stick with your existing plan, try configuring 'List folder Contents' permissions  for 'Everyone' and make sure you have set correct share permissions as well.