Preventing access to a drive in Windows Server

Aaradhya Chauhan 111 Reputation points

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 Group Policy
Windows Group Policy
A feature of Windows that enables policy-based administration using Active Directory.
2,144 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,437 questions
0 comments No comments
{count} votes

Accepted answer
  1. Fan Fan 15,191 Reputation points

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

    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:


    0 comments No comments

0 additional answers

Sort by: Most helpful