1, press win+r key, open run, enter "Gpedit.msc", click OK;
2. In the Local Group Policy Editor window, expand to User Configuration--Admin template--Windows Component--windows Resource Manager;
3. Locate and open to prevent access to the drive entry from my computer, change to Enabled, select the partition you want to disable, and click OK;
4. After restarting the computer, or by using the command "Gpupdate/force" to refresh the Group Policy, opening the partition again prompts for restricted access.