Command line mapping of network drives
Mapping network drives in Windows usually involves shuffling through Explorer menus. There is another way that I consider to be neater: using the Windows command line ("DOS" to some). The basic command for creating a mapping goes like this:
net use w: \\yourserver.address
To ensure persistence of the mapping across different Windows sessions, use this:
net use w: \\yourserver.address /persistent:yes
Here’s how to set up a mapping that logs in as a different user:
net use w: \\yourserver.address password /user:you
The above can include domain information as well and in a number of different forms: domain\username is one.
To delete a mapping, try this:
net use w: /delete
List all existing mappings:
net use
This is a flavour of what is available and Microsoft does provide documentation. Issuing the following command will bring some of that on the command line:
net help use
Other Posts That May Interest You
Place your comment
Topics Discussed
Adobe Apache Blogging Blogs Canon Command Line CSS Debian Fedora Firefox GNOME Google Hard Drives Hardware HTML Installation Internet Explorer Linux Microsoft MySQL Opera Operating System Perl Photoshop Photoshop Elements PHP Plugins SAS Software SQL Ubuntu UNIX upgrade VirtualBox Virtualisation Virtual Machines VMware Web Browsers Windows Windows Vista Windows XP WordPress WordPress.com WordPress plugins XHTMLTwitter Updates
- Delicious: Example 4.9 Computing Confidence Limits for the Mean, Standard Deviation, and Variance http://ow.ly/18OCZJ 1 day ago
- GR Shared Items: SAS Enterprise Guide 4.3 is available http://ow.ly/18O1jS 2 days ago
- GR Shared Items: Two New SAS Blogs http://ow.ly/18O1jT 2 days ago
- GR Shared Items: SAS EG 4.3 is here (but its hiding with Elvis) http://ow.ly/18MYxY 3 days ago
- GR Shared Items: Weblog Tools Collection: WordPress and the Fatal Memory Error http://ow.ly/18MdIo 4 days ago
- More updates...
Monthly Archives