How do I map a mac network drive to a windows machine?

6,148

Solution 1

As you're the one who set up the share, I'm assuming you know the share name and the IP for the machine. From here, it's pretty simple.

  • open up windows explorer.
  • In the 'current folder' bar up the top (where it says 'This PC', 'C:\Users{user}\', etc) enter in the following:

    \\{IP ADDRESS OF MACHINE}\{SHARENAME}
    

For example, if the IP of the machine is 10.0.0.1 and the share name is potatoes, you would enter:

   \\10.0.0.1\potatoes

If you're prompted for a username and password, then enter them here. If all is well, you should be at the share folder.

To map the drive, go to 'My Computer'/'This PC' and click on the 'Map Network Drive' button in the top ribbon, under the tab 'Computer'. A window should open up asking for a drive letter, the share location, and two checkboxes for reconnection and alternate user authentication. If you want the share to be persistent (i.e. is still there if the user logs off and back on again) make sure the "Reconnect at Sign-in" box is ticked. If not, leave it unticked. Make sure you tick the "Connect using different credentials" box. Now, select a drive letter (usually you don't have to change it) and enter in the share location, in the format shown above. Click 'Finish', enter your username and password when prompted, and if all is well the drive should now be mapped under the letter you assigned.

Solution 2

You can map it from the command line (cmd.exe or PowerShell) using net use:

net use m: \\iMacHostname_or_IPAddress\share /user:iMacLoginID iMacPassword

This will use your Mac login credentials to mount the share as drive letter M:\ on your Windows machine.

Just for good measure, I will also add that you can do this the exact same way from the Bash shell on Windows if you are using Cygwin as long as you make sure to escape all of the backslashes. So if using Cygwin, it would actually be like this:

net use m: \\\\iMacHostname_or_IP\\share /user:iMacLoginID iMacPassword

Otherwise, if you want to go the GUI route, simply go to Computer > Map Network Drive > Enter appropriate info (\\hostname\share or \\IP\share and the credentials you use when accessing the drive on your iMac).

You can also use Start > Run (or WinKey+R on Windows 7+, I believe), and simply type \\hostnameORip\share, and you should get prompted for credentials, at which point you will enter the creds you use to authenticate on your Mac. This can also be done from the address bar in Windows Explorer on some versions of Windows (if not all versions).

Share:
6,148

Related videos on Youtube

user308827
Author by

user308827

Updated on September 18, 2022

Comments

  • user308827
    user308827 over 1 year

    I have a RAID connected to my iMac, and I want other windows users in the same network to be able to access that RAID.

    I have turned on file sharing from mac system preferences for that particular drive, and added the users I want to use that drive. How do I do the final step i.e. what does a windows user need to do to access those drives now?

    I do have smb address for my machine

  • user308827
    user308827 over 8 years
    thanks @user3614411, is the share name of the machine the same as what I see when I click on the apple icon on top left and get the machine info?
  • Bilfred
    Bilfred over 8 years
    The share name is not the machine name, it is usually the name of the folder that you've shared. So if the folder you've shared is called 'potatoes', then the share name is 'potatoes'. Alternatively, you can find your shared folder in the File sharing system preferences. I assume you already know how to get there, but just to make sure it's at 'System Preferences' -> 'Sharing' -> 'File Sharing'. The File sharing is a tick box, among a selection of other tick boxes. Also look here for a bit more info, if you need it.
  • harrymc
    harrymc over 8 years
    It's simpler to just start Windows Explorer, click on "Network" and open the server computer using the little triangle icon. The shares should be displayed and can be mapped.
  • Bilfred
    Bilfred over 8 years
    Mapping the drive ensures a username and password is supplied. I've come across a bit of a nag with Windows, where sometimes it won't ask for a username or password and it'll just try to log in as guest, which isn't very helpful. And also, don't forget that the machine will only appear under "Network" if a) the Windows PC has Network and Device sharing enabled and b) the Mac has Network discovery enabled.