-
net use vs Map Drive
Hello all,
Just wondering if anyone knew why netuse was the better option for mapping drives. I used to map drives using this "Map Network Drive" button, and noticed it took half a year to open my computer. When I use net use, I notice that it only takes about 5 seconds.
I'm guessing it's the way windows goes about caching credentials/locations/whatever, but I'm not sure exactly what the difference is. Anyone have an idea?
-
Re: net use vs Map Drive
One is a command line option & the other is a GUI. Command line will always be faster in most cases.
-
Re: net use vs Map Drive
That makes sense. I don't think I was clear. I know the processes are different lengths and such, but I was actually referring to access times. When opening my computer after mapping a drive, my computer actually stops responding for a few moments. When opening my computer after using net use to map a drive, it opens right up.
-
Re: net use vs Map Drive
Do you have ReConnect at Logon Checked when you use the GUI to map the drive?
-
Re: net use vs Map Drive
Probably; I think it freezes (or hangs) in either case though...
-
Re: net use vs Map Drive
And as a not, it happens every time I open my computer, not just the first time. Wouldn't reconnect at logon, whether on or off, only cause a problem on first accesssing?
-
Re: net use vs Map Drive
If it is checked whenever you log on it will attempt to connect to the drive. That will take time.
-
Re: net use vs Map Drive
Pardon my ignorance, but doesn't "...at log on" kind of imply only once, when you log on, not every time you open the My Computer window?
-
Re: net use vs Map Drive
Ah, I see what you're asking now. I honestly don't know why it would take longer to access your mapped drive from My Computer when you map it using "map drive" and not take long at all when you map it using net use. Other than one being done via command line and the other via gui, they achieve the same result and once it's mapped either way it shouldn't make a difference on access time. I don't know what OS you're using and what OS your accessing. However, where I used to work we used XP and drives were mapped manually via gui and there were no access time issues. It opened right up. Some part of your OS might be corrupted or something?
-
Re: net use vs Map Drive
Hmm...it's possible, but it doesn't happen on multiple machines. Maybe it's something to do with the device itself. In particular, I notice things slow down when I access a couple of NAS devices. I know they're running *nix.
I also wonder if the credentials specified when using net use are stored differently than credentials entered when connecting to a device. If that's the case, it may account for the slowdown when accessing a different disk.
-
Re: net use vs Map Drive
What OS are you using? I've seen that Windows 7 tends to cache a lot more filesystem information as it wakes up sleeping drives rather than wait for all drives to power up.
-
Re: net use vs Map Drive
-
Re: net use vs Map Drive
Well you haven't mentioned other pcs that you had. Also, if it doesn't take long for them to open up My Computer when you map the drives on them using the gui then it obviously points back to the pc your having a problem with and not what command you're using.
-
Re: net use vs Map Drive
Since you mentioned the slowness occurs when connecting to NAS devices, I guess what happens is that the NAS has spun down its HDD's and it takes some time for those HDD's to spin up again. If this is the case, you can change the NAS setting to increase the idle time or disable it all together.
-
Re: net use vs Map Drive
I suppose. I probably need to do more diagnostics. To be honest, I'm the IT admin, so I have multiple mapped drives - more so than most people. I've tried disconnecting and reconnecting mapped drives multiple ways, but haven't specifically noted each step. I know that when I was mapping drives via the GUI, it was slow; when I did it through net use, it wasn't slow.
I guess I'm just more wondering if anyone has had any issues similar to mine - more of a general curiosity than a problem to resolve.
-
Re: net use vs Map Drive
My guess would be that mapping via the GUI encompasses more than mapping a letter to just SMB shares. It may well be trying to map to a Front Page Server Extensions and/or WebDAV share on the remote device first ("Web Folders"). It may be awaiting a long timeout when it probes for a Web service running on the remote machine.
-
Re: net use vs Map Drive
The OP stated that it isn't slow on other PCs when mapping through gui. I think my previous statement would be the answer. The one pc he is having trouble with has something corrupted. After all, I've mapped a drive via gui from the USA to the Netherlands via VPN and had no lag issues opening up My Computer.
-
Re: net use vs Map Drive
fair enough. I'll give it another try. Thanks!