I have mapped a network drive and named S:\ under "My Computer".

My problem is that I need to log in to the drive again when I reboot my pc, how can I fix it?

My pc is Windows XP Professional Version 2002 Service Pack 3
The share driver is using Windows Server 2008

UPDATE 2 I have not joined the domain I log in the server drive with domain account I have read/write permission

migrated from serverfault.com Jul 22 '11 at 7:53

This question came from our site for system and network administrators.

  • Which edition and service pack of XP are you on? Which edition and service pack of Windows is the share living on? Do you have matching accounts set up on both machines if you're not on a domain? – user3463 Jul 22 '11 at 7:09
  • Please see my update. Yes, I have a matching account, just wonder why I need to log in again when reboot – Charles Yeung Jul 22 '11 at 7:46
  • Severely lacking information! Are either of the computers on a domain? what account are you logging on with (local or domain), what are the share permissions configured as? - I'm thinking that all you need to do is tick the 'Remember my password' checkbox, but that seems too obvious. More detail will really increase your chances of somebody being able to help you. – Bryan Jul 22 '11 at 7:55
  • Sorry for the insufficient information, please see update 2 – Charles Yeung Jul 22 '11 at 8:32

Map the share with a batch file in your startup folder

net use s: //pathto/share password /user:domain\user


try running:

rundll32 keymgr.dll,KRShowKeyMgr

there you can type credentials [to authenticate against remote severs] that will be stored


You can do that as a batch file as in the accepted answer, or you can more simply make the mapping persistent:

net use s: //pathto/share password /user:domain\user /PERSISTENT:YES

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.