Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

mounting network shares based on username

$
0
0

I need to mount a network drive at login for domain users in a public lab.  The storage server that contains all of these SMB shares is a non-Windows SMB server.   I can do this easily enough with the net use cmd, for a normal share. 

However, the user's network shares are in a odd format.  The server and shares are in this format:

\\Storage\users\c\cross

or 

\\Storage\users\r\rball

How can I script this to pull the first letter of the username then use it in the path to the share for that specific user?

Clients computers are Windows 7 Ent. and the domain is Windows Server 2008 R2. 

Thanks!



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>