Works only under specific conditions...
So for a transitory mapping in a script to a network resource to which you have access this is OK.
Most of the time I need the authentication provided with NET USE to reach a resource.
Hint, NEVER use persistent drive mappings. If you know how to use NET USE then put it in a script (i.e. MyMapping.cmd) and run it when needed (also unmap the drive when no longer needed). This will save you many headaches.
It is a bit more advanced but you can have the script check if you are on the network where you mapping will work before mapping the drive.
-----------------------------------------------------------------------------
For those who want to know why persistent mappings are bad in a corporate environment and not recommended at home...
Persistent mappings are a major cause of slow response to opening Windows Explorer, My Documents, finding or saving files (save-as dialog) among other items. Microsoft has these actions check that network resources are available each time one of these is used. And these lurk in unlikely places in what people do on computers.
What happens is these actions all try to connect to each network reasource including the non-present items. This can mean say 60 - 90 seconds (or longer) per item not available. Not to mention the time for each item that is available to respond. So, instead of the "File -Save As" dialog opening up in 5 to 10 seconds, it can take 3 or 4 minutes (and I have seen 30+ minutes for extreme cases).
This is especially true in larger WAN based network topologies where response time is much slower and timeouts may be set to a longer interval.
Many times persistant mappings are used to connect to someone elses computer, not a server. Now you have computers that are not always on or laptops that go on trips. Every mapping to a system that is not available makes anything that touches a network resource have to wait for the system to time out attempting to connect to EACH ITEM that is no longer available.
Example: Why is Word or PowerPoint so slow to open a file? Unfortunately in the WYSIWYG new world, Office checks the printer before showing the document. Well you have a network based printer and there are 2 persistent drive mappings to things that no longer exists. Luckily it usually checks just the default printer and not each printer defined on the system.
And sometimes people wonder why I made all clients I support default to NOT REMEMBER network connections.