Preventing access to a drive in Windows Server

Aaradhya Chauhan 111 Reputation points
2021-03-04T12:10:41.897+00:00

I am using Windows Server 2019 Datacenter. I applied the group policy to hide the drive and restrict users from accessing that drive. However, when I logged in as a user, I am still able to access the drive over Command prompt. Moreover, I am also able to create folders and delete contents of the restricted drive using the CMD, which is a major security risk. Please help me in resolving the issue, as I want to completely inhibit a user from accessing the drive by any means.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,770 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,251 questions
0 comments No comments
{count} votes

Accepted answer
  1. Fan Fan 15,291 Reputation points Microsoft Vendor
    2021-03-05T01:45:38.43+00:00

    Hi,
    Welcome to share here!
    As you mentioned, the group policy Prevent access to a drive will not completely prevent users to access the drive.

    https://learn.microsoft.com/en-us/troubleshoot/windows-client/group-policy/using-group-policy-objects-hide-specified-drives

    If it is required in your environment , you need to set the permission on the drives. Remove users from the permission list.
    To do this through group policy, you can find the policy under:
    Computer Configuration > Policies > Windows Settings >Security Settings and right-click File System> Add File. Let's take an example of C drives:
    74582-351.jpg
    74496-352.jpg
    74583-353.jpg

    Fan

    0 comments No comments

0 additional answers

Sort by: Most helpful