1
I can open "My Computer"..tools..map network drive. Check "Reconnect at logon". And it is permanent. But I may want to clear the shares, and create them quickly. So I want to automatically do a few, so I want a fast way of doing it.
I suppose I could write a batch and have it load with the command prompt.
Lines like
net use V: \\compg\dir
But I want the network shares to load automatically when windows starts. I could put the bat in startup folder, but I don't want a command prompt opening up on every windows restart.
I was hoping there might be a command to do it so it is permanent. or perhaps a windows scripting method..
What are my options? I'm interested in what ways this can be done.
hmm, last time I tried that and restarted, it didn't work.. i'll try it again. – barlop – 2010-11-10T18:39:54.913
according to http://www.chicagotech.net/mapping.htm that persistent:yes option is the default. So I think it doesn't do what you think. slight chance it saves login info for next time or something. But it's default according to that link. And we know default doesn't keep the mapping on restart.
– barlop – 2010-11-10T18:43:22.757@barlop, /persistent:yes in my experience has never been the default, unless that has changed in Win Vista / Win 7. Back in Os/2 days, it wasn't the default, and with Win XP, I always had to add it if I wanted it to persist. – Benjamin Schollnick – 2010-11-10T23:36:53.737
1
It isn't & is the default... From MS: /persistent:{yes | no} : Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /delete to remove persistent connections. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true
– Benjamin Schollnick – 2010-11-10T23:37:57.417@Benjamin That is an intriguing quote, but what does it mean? Is it the same as "Reconnect at logon" when mapping a network drive via the GUI? I could try it again I suppose. It may be that the mapped drive is not saved, but the logging in aspect is. I want both, and I doubt persistent does that. – barlop – 2010-11-11T01:38:44.950
Just tried persistent again. I logged off, logged back on. It prompted me again, so didn't save user/pass. (I know /savecred does), so not sure what persistent:yes does. and of course it certainly doesn't preserve the mapped networked drive. – barlop – 2010-11-11T02:26:41.600
-1 'cos it had one vote I just removed it. simply 'cos the "persistent:yes" does not do what your post suggests it does / what my question wanted. Also, a nitpick, there is no option with the words you have in quotation marks, the option is the words "Reconnect at logon" as my question mentioned. The exact words are useful and especially when quoting.. for googling purposes. – barlop – 2010-11-14T17:43:38.737