NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Sulu
Jul 16, 2011Aspirant
Mapping A Share Fails to Connect At Startup
I am using Windows 7 I access my ReadyNAS Duo via Frontview I created one user: user1 and one group: users I have one share: files The share has been set with the following permissions: CIFS...
PandaMarketer
Jul 24, 2011Aspirant
Sulu wrote: I then added the command "NET USE /Persistent:Yes" to set it to reconnect at startup
The drive mapped fine and I was able to open it up and see all the files, create files with the correct ownership rights, everything is perfect except when I restart it fails to reconnect.
Any new suggestions? Thanks for sticking with me.
Sulu, sorry for being away for several days since my last post. I don't visit here often.
Anyhoo, in post #2, I asked you if you have tried the command-line batch reconnect-at-logon approach. You never answered me. I didn't link it, but I told you that I was referring to the wiki FAQ under the "shares" section. (See below)
PandaMarketer wrote: Have you tried the command line batch (manual) reconnect at logon approach? (found in the wiki under "shares")
What this method has you do is create a batch file. (*.BAT) that runs on start-up. This is where YOU, the user, manually creates it and puts it in the start-up folder. Tell me, have you tried this? This should map your drives for you using the old (pseudo-) DOS method.*
Also, the switch "/persistent:no" was explicitly set to no for a reason. (from post #4 in this thread)
It doesn't meant what we think it means. :slap:
I also stated in post #4, that:
PandaMarketer wrote: Once you can get this to work from the command line, then you can include this command in a batch file that you can set up to run every time you boot your machine.
Maybe you don't know how to create a batch file? It's pretty simple. A the core, it's just a text file with a collection of commands one would enter on the command-line.
* let me show you how to build one
- Open up any text-only editor, and save the file as <whatever>.BAT (not <whatever>.BAT.TXT) You must be able to rename file extentions!
- Put this in and edit it for your system...
@echo off
echo.Mapping NAS to drive letter Z:
NET USE z: \\NAS-01-F0-3F\fileshare /USER:user1 password /PERSISTENT:no
echo.Done!
I like to use simple, descriptive names, so in our case, let's name this NASMAPZ.BAT. :-)
- So, let's test this baby out. Put it somewhere you can find it in the DOS Shell easily. (the desktop is fine.)
- Be sure to un-map your drive Z for this, and future tests.
- Run "cmd" and get a shell window. It defaults to "C:\Users\User", so to navigate to the desktop, type "cd desktop" and you're now there. "C:\Users\User\Desktop"
- Type your batch file's name "nasmapz.bat" and press enter.
- You should see the echoed output we wrote in the batch file, and if successful, a new window with our share open. (I think)
- So, if all is well, un-map your drive for the next test.
Okay, so now we need to put this puppy in the start-up folder. In Windows 7, it's hidden very well. Here is a trick to get to it... - Press the WIN key (or click Start) and just start typing the following command and press Enter: shell:startup
- I'm sure you'll know what to do next... put your batch file in this folder. (not a short cut)
- Now, just log off and back on. (or reboot)
- Enjoy.
NOTE: THIS IS ONLY TO SOLVE YOUR MAPPING, not your accessing speed. :D
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!