Maybe you can find here some useful scripts
Mapping network drive(s) from your nas (or server) without a server rule (Windows/VBS)
mappings.vbs