Windows 7 Shared Drive Reconnect on Startup

So far the number one annoying thing I found in Windows 7 is the fact that my shared drives will not reconnect everytime I restart my computer. I also experienced this issue in Vista so I figured that I should look into it and try a similar fix.

I found that the following command line will solve the problem:

net use g: \serverpathtoshare /persistent:no /user:

where for g: is the drive to which it is mapped to.

For example here is what I typed into my server:

net use g: "\optimusprimemusic" /persistent:no /user:myusername mypassword

After a few seconds it connected and the problem no longer exists. Yes, yes, I know my server name is Optimusprime, haha don't you wish you could name your server something just as cool.

Keywords: windows 7 shared drive


Submit a Comment






Comments

Cody

Posted on: Sep 2, 2009 7:26 am

If you can`t find a way to do this your best bet would be to find a way to get a batch file to run on startup running the codes through command prompt, just msconfig and add the batch file to startup. Thats my idea on how to get around it. You`re terrible for naming your server optimusprime... LOL. I`m still coming up with ideas on what to name mine. Now something I`m curious about is with xbox 360 being pretty much a htpc could you do a remote soure for the media center to be put on? lets say I have a 360 and I want to stream from a remote source so I have a dedicated box in chicago or something would it be possible to set that up or not

Cody

Posted on: Sep 2, 2009 7:21 am

Who would this be submitted by?