Windows file sharing allows users to make folders on one computer accessible to other devices on the same network by configuring share permissions and NTFS permissions. This content covers the end-to-end process of creating a shared folder, setting access controls, and connecting to the share from another machine using a UNC path.
Sharing Files on a Network
There are times we want to share out files and folders to other devices on our network. Here we have a home network. It consists of a router and a switch and several devices that are on this network. Let's say we have a machine that has some files and folders on it and we want to share that out to other devices on this network. What we can do is set up a share on this machine and give access to other machines, so they can have access to those files and folders.
I'm on my demo machine, and what I'm going to do is create a folder that I'm going to share out. I'm going to open up File Explorer, and with File Explorer open I'm going to create this share on the E drive. So I've selected the E drive, I'm going to right-click on here and say new and create a new folder, and let's just give this a name. We're going to call this — how about file share. So we'll call it file share.
I'm going to right-click on this, we're going to go to properties, and there's this sharing tab. So I'm going to click the sharing tab, and there's this share button here, so I'm going to click on share. Now this is a way that we can start sharing out this folder.
The first thing I need to do is select who I am going to share this to. For instance, we have the demo user, which is marked as the owner, permission level owner on here. I'm going to do everyone, and the reason why I'm going to do everyone is that there are actually two sets of permissions on here. There's this share permission right here, and then there are the NTFS permissions. What I want to do in this case is just manage everything through the NTFS permissions, and so to do that I can add everyone to here and give them the read/write control here, so that they have access to read and write. That's everyone, but this doesn't necessarily give everyone access to this folder, because it's going to work with both the share permissions and also the NTFS permissions.
So I'm just going to click on share, and now it's only going to be access to those who have access to this folder. It says the folder is shared. I'm going to click on done, and here's where the NTFS permissions are at. On the NTFS permissions you can see that everyone does have full control on here, so I can actually change that if I want to, and then the demo user has full control on this as well. The demo user is the one that I'm going to log in as. So this is where we can control this and give access to only specific users and have a lot more granular control with it.
Let's log in as demo user. There are a couple of things I need to look up now for this. In order to access this share, one of them is either the computer name or the IP address. To keep it simple I'm just going to use the IP address. To look up the IP address of this machine, I'm going to bring up a command prompt, and I'm going to type in ipconfig, and we'll take a look and see what's assigned to it. So, 192.168 4291. We'll have to remember that.
Then we'll also see the demo user here. We need to see what account that is, what the user account is for that. So I'm going to type in here computer management and I'll hit enter, and here again I can access different areas. I can access the users on this machine, but this is the one I like to go to. I'm going to open up the demo user, and under demo user I can see the full name, the profile — I can find out different information with this. If I need to reset this account, I can do that. So here's the account that I'm going to use, the demo user.
I jumped on another machine. This happens to be a Windows Server, so I jumped on this Windows Server, and let's see how we can gain access to that network share. There are actually several different ways I could do this. I'm going to open up a run, so I'm going to hit the start and type in run and hit enter, and this is my favorite way of typing it in.
What I'll do is type in backslash backslash and then the machine name, or in this case we're going to use an IP address just to make it simple, so 192.168 4291 is the one that we took a look at. Then I'm going to hit backslash and then I can type in the name of the share, or we're just going to hit okay for now and see what pops up here.
It's asking for credentials here, and this is where I'm going to type in my demo user, and then for the password I'm going to type in the password for that, and I'm going to click on okay. With this it opens up, and now I see my two shares. I've got this test share that I must have created earlier, and then I've got this file share in here.
What I'm going to do is open up this file share, and we're going to give it a test run by creating a text document. We'll say hello, how about that, and hit enter. We'll even open it up and just say "this is a test document", and we'll save that, so file, save.
Let's jump on the other machine now and take a look and see what it looks like. I'm back on the other machine, so I'm going to open up this file share in here, and you can see the hello text here. I open it up and I can see this is a test document. So there it is.
What we've done is we've shared out this folder, and now everyone has access to this folder to drop files into it, or to access any files and folders shared out — all these different files.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →