This tutorial walks you through the process of creating and managing network file shares with Active Directory integration. You'll configure file share permissions for users and groups to allow or deny access based on roles.
- Microsoft Azure Virtual Machines
- Remote Desktop
- Active Directory Users and Computers
- Network Security Group
- Organization Units
- Windows 10
- Windows Server 2019
- Active Directory Domain Controller setup
- Client machine connected to the same domain
- Basic knowledge of Active Directory and file sharing
- Remote Desktop access to Azure VMs
- Create two remote desktop instances: one as a Domain Controller (DC-1) and one as a client machine (Client-1).
- Log in to the domain controller as an admin and to the client PC as a normal user.
Domain Controller (DC-1)
Client machine (Client-1)
- On DC-1, open Windows Explorer and navigate to the C:\ drive.
- Create four folders: read-access, write-access, no-access, and accounting.
- Right-click each folder and go to Properties → Sharing.
- Click Share, and in the dropdown menu, select Domain Users.
- Set permissions as follows:
- read-access: Read permissions
- write-access: Read/Write permissions
- no-access: Deny access to normal users (assign Domain Admins Read/Write access)
- On Client-1, press Run → type
\\DC-1
to access the shared folders. - Test the following:
- read-access: Open and edit a file (should allow viewing only).
- write-access: Edit and save the file.
- no-access: You should see an error indicating access is denied.
Read Only Access (Cannot Create a File)
Write Only Access
No Access
- On DC-1, open Active Directory Users and Computers.
- Create a new Organizational Unit (OU) called _SECURITY_GROUP.
- Create a Group named ACCOUNTANTS within this OU, selecting Global for group scope and Security for group type.
- Go to the accounting folder and open its Properties → Sharing.
- Add the ACCOUNTANTS group and grant Read/Write permissions.
- Share the folder.
- In Active Directory, add the appropriate user to the ACCOUNTANTS group.
- Right-click the group → Properties → Members → Add → search and add the user.
- Log off from Client-1, then log back in to apply group membership changes.
- Open Windows File Explorer, navigate to
\\DC-1
, and open the accounting folder. - Test if you can access, edit, and save the file.
You now have successfully set up network file shares and configured permissions using Active Directory. For more details, visit the Microsoft Support Page.
Q: How do I give specific users read-only access?
A: Set the folder permissions to "Read" for the specific user or group.
Q: What if a user can't access a folder?
A: Ensure that the user is added to the correct security group and that the share permissions are properly set.
🎉 You’ve successfully configured network file shares with Active Directory permissions! 🎉