Hello arwah abdalla,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Problem
Sequel to your questions, I understand that you are managing a Windows Server 2022 instance on Azure and has set up user accounts for server access. Initially, in assumption users had full control over the C Drive, including folder creation and deletion. However, the user aimed to enhance security by implementing Group Policy to limit C Drive access. After applying this policy, users faced difficulty accessing essential folders like Desktop, Documents, Pictures, and Downloads, receiving an error message citing imposed restrictions. You seek a solution to restrict C Drive access while maintaining access to specific folders.
Scenario
As the administrator of a Windows Server 2022 instance on Azure, you've created user accounts to facilitate server access. Initially, users enjoyed unrestricted access to the C Drive, affording them the ability to manage folders. In an effort to bolster security, you opted to enforce Group Policy to curtail C Drive access. However, upon implementing this policy and enforcing "prevent access to drives from my computer," users encountered obstacles. They found themselves unable to reach crucial folders like Desktop, Documents, Pictures, and Downloads, encountering error messages indicating imposed restrictions. Now, you're tasked with finding a solution to limit C Drive access while preserving access to these essential folders.
Solution
This prescribed solution was based on the scenario given and your questions, while focusing on the problem statement.
Let me start from your question:
so when i created users in my server, users can they able to delete and create folder in C Drive.
Absolutely, they will have access to everything on the Server.
My question to you:
- Do you create a local user account or Active Directory user account?
- What resources do you want your users to access on the server?
If you answer the above questions it might guide on how to provide a better answer to your scenario.
However, based on the question and your scenario.
- Create a Security Group. Add the relevant users to this security group.
- Navigate to the folders you want to restrict (e.g., Desktop, Documents, Pictures, Downloads) on the C Drive.
- Right-click each folder, select "Properties," and go to the "Security" tab.
- Remove the "Users" group and add the security group you created in
- Open Group Policy Management Console (GPMC) on your Windows Server 2022 instance.
- Create a new Group Policy Object (GPO) or edit an existing one that applies to the users who need restricted access.
- Navigate to User Configuration -> Policies -> Administrative Templates -> Windows Components -> File Explorer.
- Enable the policy "Prevent access to drives from My Computer.
Finally
You can use different medium to perform the above steps either local user account or Active Directory or PowerShell. In summary, you can effectively restrict access to the C Drive while allowing access to specific folders like Desktop, Documents, Pictures, and Downloads for the designated users. Also, you can think of creating a profile for each user without having access to the main Server but having a separate profile on the Server.
References
Kindly read more from the additional resources provided by the right side of this page.
Accept Answer
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam
NR.