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!