How to Prevent Access to Drives in This PC on Windows 10
If you have a shared or public computer that several people use, you may be worried about your important data being viewed, tampered with, or deleted. To dispel such concern, it's a good idea to prevent access to certain drives from This PC.
To prevent users from accessing the drive from This PC, one possible method is to use BitLocker to encrypt the drive. However, BitLocker encryption is a time-consuming task. You may not want to do that, and in fact you don't have to. Now, on this page, we will show you two simple and fast ways to prevent access to drives from My Computer in Windows 10.
Way 1: Prevent access to drives in This PC using Group Policy
Step 1: Open the Run dialog box using Win + R, type gpedit.msc, and then click OK. This will open Local Group Policy Editor.
Step 2: Once the Local Group Policy Editor opens, navigate to User Configuration > Administrative Templates > Windows Components > File Explorer. Select the File Explorer folder on the left pane, and then double click the setting titled "Prevent access to drives from My Computer" on the right pane.
Step 3: Select the Enabled radio button, select the drive or drive combinations you want to prevent access to, and then click Apply.
Changes will take effect immediately without restarting Windows 10. Then if the user tries to access the drive from This PC, he will be blocked and get an error message as shown in the figure below.
If you want to allow access to the drive, just open that policy setting and set it to Not Configured or Disabled.
Way 2: Prevent access to drives from This PC using Registry Editor
Step 1: Open the Run dialog box, type regedit, and then click OK. This will open Registry Editor.
Step 2: Once the Registry Editor opens, navigate to the key ComputerHKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer on the left pane.
Tips: If the Explorer key does not exist, you can right-click on Policies and select New > Key to create a new key. Then name this new key Explorer.
Step 3: Right-click the Explorer key on the left pane, and select New > DWORD (32-bit) Value. Then name the new value NoViewOnDrive.
Step 4: Double-click the NoViewOnDrive value, set its value data to 4 (to prevent access to C drive), or 8 (to prevent access to D drive), or 67108863 (to prevent access to all drives), and then click OK to save the changes.
Tips: If you want to prevent access to C drive and D drive, set the value data to 12 (4 + 8).
Step 5: Close the Registry Editor and restart Windows 10 for the changes to take effect.
The above is the detailed content of How to Prevent Access to Drives in This PC on Windows 10. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

Turn your Windows 11 PC into a Bluetooth speaker and enjoy your favorite music from your phone! This guide shows you how to easily connect your iPhone or Android device to your computer for audio playback. Step 1: Pair Your Bluetooth Device First, pa

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

Detailed explanation of Windows 11 notification settings: Create a personalized notification experience Windows 11 integrates the Notification Center into the calendar, and although it takes some time to adapt, the frequency of notifications has not changed. If you are tired of the constantly popping up system updates and useless application notifications, this article will guide you to customize Windows 11 notifications and optimize your workflow. Global notification settings Almost all notification-related options are located in Settings in Windows 11. Step 1: Click the "Start" menu and select "Settings" (or press "Windows I"). Step 2: Select System in the left sidebar. Step 3: Click "Notification" to access all notification options.

Improve mouse accuracy: Disable Windows 11 mouse acceleration function The mouse cursor moves too fast on the screen, even if you only move the mouse a few centimeters? This is what the mouse acceleration function is. This article will guide you on how to disable this feature to better control mouse movement. Is it wise to disable mouse acceleration? There is no direct "Mouse Acceleration" option in Windows systems. Instead, it is the "Enhanced Pointer Precision" setting, which Microsoft sees as a mouse acceleration feature. When this feature is enabled, the mouse's DPI (dots per inch) setting takes effect. It controls the relationship between the physical movement speed of the mouse and the distance the cursor moves on the screen. Move the mouse slowly, Windows will reduce the effective DPI and the cursor moves shorter

In today's touchscreen world, the satisfying tactile feedback of physical controls is a welcome change. That's why a keyboard with a large volume knob is surprisingly appealing. I recently experienced this firsthand, and it's been a revelation. For
