The KiX based login script on my web site supports this - called Path Rewriting.

You can define a resource record in the login config file, where
Code:
PATH=\\server\share\&USER:map_id&


This tells the drive mapping routine to use the user ID of the person logging in as a reference to a lookup record. The value returned by that record replaces the &USER:map_id& part of the path. That can be anything - the server, share, or deep-map directory name! Much easier to maintain the lookup records than multiple if/case statements, especially when user IDs change.

The login script can also do path rewriting based on AD Site IDs, as well as direct UserID and Site ID replacements, not to mention "normal" and even "complex" AD Group based mappings.

This type of functionality is helpful when you have a "team" of users to connect to a share that are not necessarily a specific AD group.

Navigate to the Products / Admin Toolchest section of my web site to locate the login script ZIP file.

Glenn