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.