Creating File Shares Lab - Zacham17/my-tech-journal GitHub Wiki
Brief Summary
In this lab, I set up a file server and created shared drives among users in the domain. I created a public drive that is shared among all domain users, and a home drive for each user on the domain.
How I Set up a File Server
- First off, I had to set the network interface configuration of the file server:
- I used the
netsh
command to do this.- I set the ip address using the following syntax
netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY
- I set the ip address using the following syntax
netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER
- I set the ip address using the following syntax
- Using Server Manager on another computer, add the File Server to the servers to manage, then using "Add Roles and Features", add the File Server Role and the File Server Resource Manager feature
- Then I created a folder in the C:\ directory called "Shares" on the file server which would be the location where the shared directories are stored
- Using Server manager, in the "Shares" section of "File and Storage Devices", I created two different shares. One was called Public$, and the other was called Home$
- For the Home$ folder, I set a quota of 2GB for each user it is assigned to.
- In the Home$ directory I also made a folder for each user and named it the username of that user. This allows each user to have their own Home Drive.
- I then went to group policy manager and created a group policy to map a drive to the public$ share that I created previously:
- I created the GPO in the Accounts OU
- I set the location to \fs01\Public$, which is the location on the file server
- I called the drive "Public" and set the drive letter to P
- I set permissions read only for all non domain administrators
- I also had this GPO apply to the Domain Users group
- After configuring this, all Domain users have a Public drive they can access.
- I then went to group policy manager and created a group policy to map a drive to the home$ share and each user folder within it that I created previously:
- I created the GPO in the Accounts OU
- I set the location to \fs01\Home$%LogonUser%, which is the location of each user folder I created on the file server
- I called the drive "Home" and set the drive letter to H
- I also had this GPO apply to all of the Domain Users individually.
- After configuring this GPO, each user had their own home drive that they could access use.
- Note: If changes didn't take place immediately after I created a GPO, I ran the command
gpudate /force
Resources I Used:
- I mainly used one resource in this lab, and it was this website
- I also worked a good amount with classmates on this lab. There was a lot of collaboration on finding good resources to use.