Home | Articles | About | Contact | Forum |
Tuesday, March 19, 2024



Lunarpages.com Web Hosting

Mailing List

E-mail:
By Joining the mailing list you will be notified of site updates.


Show Your Support For
This Site By Donating:











Audience: Self Learners
Last Updated: 4/29/2014 11:49:45 PM
**All times are EST**





HOWTO - Mapping a network drive via command line with credentials

By Erik Rodriguez

Tags: Windows XP drive mapping, command prompt drive mapping, drive mapping with different credentials

This article provides information on how to specify alternate creditials for mapping a drive between two computers.

Requirements

You will need the IP address or hostname along with the username/password of an account on the remote machine. You must also make sure you have the RPC service running and file/print sharing on the computer you wish to map a drive from. Also make sure the folder you wish to map is shared and the permissions are correct on the remote machine.

net use S: \\192.168.23.124\xml /user:SERVER12\stateside

NOTE: commands in green are variables specific to your situation. Commands in black are static commands along with the correct syntax and should not change. See below:


net use S: -- Net use is the actual command for drive mapping where S: is the drive letter you wish to use.

\\192.168.23.124 -- The IP address of the remote machine. You may also use the hostname but will need both backslashes.

\xml -- the directory which is shared from the remote machine.

/user: -- This flag will specify a specific user on the remote machine. If you don not specify a user, it will try to map the drive using the currently logged on credentials. Make sure you have the forward slash in front of user.

SERVER12\ -- Hostname of the machine. You may also specify a Microsoft Windows domain. The trailing backslash is part of the command and NOT the hostname. You will always need it at the end.

stateside -- The username you wish to use. This must be present on the remote machine.

You will be prompted for the password upon entering the whole command. Make sure you use this correct syntax as you will get an error if you are missing any slashes or the spaces in the command are incorrect. When the syntax and username/password combination are correct you will be able to map the drive successfully.





Contact Us

If you found this information useful, click the +1 button



Your E-mail:


Subject:


Type verification image:
verification image, type it in the box

Message:


NOTE: this form DOES NOT e-mail this article, it sends feedback to the author.


TCP vs. UDP
Juniper SRX anti-spam filtering config
Windows Server 2008 Clustering Configuration
Windows 2008 R2 Network Load Balancing (NLB)
Extreme Networks: Downloading new software image
Juniper SRX save config to USB drive
Juniper SRX logout sessions
Extreme Networks Syslog Configuration
Command line drive mapping
Neoscale vs. Decru
Data Security vs. Data Protection
Juniper SRX Cluster Configuration
HOWTO - Create VLAN on Extreme Switch
Using a Non-local Colocation Facility
Linux Server Administration
IT Chop Shops
Flow Viewers: SFLOW, NetFLOW, and JFLOW
Exchange 2007 Back Pressure
IPtables open port for specific IP
Politics in IT Departments
HOWTO - Block Dropbox
Cisco IOS Cheat Sheet
Subnet Cheat Sheet
Design a DMZ Network
How DNS works
Firewall Configuration
Juniper SSG Firewalls
Server Management
Configuring VLANs
Runlevels in Linux
Server Clustering
SONET Networks
The Red Hat Network
Server Colocation
Complicated Linux Servers
Dark Fiber
Data Center Network Design
Firewall Types
Colocation Bandwidth






Copyright © 2002-2016 Skullbox.Net All Rights Reserved.
A division of Orlando Tech Works, LLC
By using this site you agree to its Terms and Conditions.
Contact Erik Rodriguez