set un=%USERNAME%
NET USE H: /d /y
NET USE /persistent:yes
NET USE H: "\\172.16.40.2\home\%un%"
TRY %userprofile