Windows Drive Mapping may not stay connected the next time. One way (official way) to ensure of it, instead of using startup script, etc., is net use persistence.
- net use /PERSISTENT:yes
- then do drive mapping.
Mapping persistence status can be determined by command:
wmic netuse