Stick the drive mappings in a drives.bat batch file (you can put the username and password here too, but never do that in commercial environments) Put batch file in startup directory.
@echo off
(not necessary, but just makes the output cleaner to look at)
net use g: \\server\share /persistent:no (/user:username password)
No need for persistent:yes
as it gets remapped on reboot
start g:
(optional - brings up an explorer window to the drive, useful if you have a NAS which goes to sleep, as this command will wake it up, otherwise you sometimes get a long delay if browsing to the drive letter within applications - Word 2007 for example)
Sometimes Explorer forgets to map the drives, but if they are done in a batch file like this, they never get forgotten.
Johnny , it works fine on windows 7 , but not on XP – Scorpion99 – 2012-12-19T09:58:35.507