Map shares by user id (alphabetically)

NOTE: You can copy and paste the code below to a text file, just change the extension to ".wbt" so it will run in Winbatch.
About This Script:I wrote this a long time ago for mapping user drives. This was to supplement the mail logon script until we finished migrating users to a new storage system. The most interesting part is the "share location section" which maps a users home drive based on their logon id. This was implemented because user share locations wee based on alphabetical order.