Mounting a network share with net use

A easy way to mount network drives from either a windows box or a linux samba share is to use the net use command in your cmd.exe prompt.

  1. Open your run prompt by holding down your windows key + R
  2. type in cmd

net use g: \\hostname\shareName

You can substitue the drive letter g with any open drive letter on your system. the hostname can either be a hostname or an ip address like this.


net use g: \\192.168.1.100\shareName

You then should be prompt to enter a username and password if the share is password protected. If everything works correctly then you should get the “The command completed successfully.” message and you should now see your drive show up under “My Computer”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s