---
title: "How to lock or prevent a particular drive(C, D, E…) in our PC without using any software?"  
description: "How to lock or prevent a particular drive(C, D, E…) in our PC without using any software?"  
author: "Gurmeet Kaur"  
published: 2018-12-08  
canonical: https://answers.mindstick.com/qa/51746/how-to-lock-or-prevent-a-particular-drive-c-d-e-in-our-pc-without-using-any-software  
category: "technology"  
tags: ["computer", "protect-drive", "lock"]  
reading_time: 2 minutes  

---

# How to lock or prevent a particular drive(C, D, E…) in our PC without using any software?

How to [lock](https://www.mindstick.com/interview/622/what-are-the-various-locking-levels-available) or prevent a particular drive(C, D, E…) in [our system](https://answers.mindstick.com/qa/31991/how-long-does-alcohol-stay-in-our-system) without using any [software](https://www.mindstick.com/articles/23272/why-software-localization-is-important-for-your-business)?

## Answers

### Answer by Arti Mishra

**"How to lock or prevent any Drive"**If you want to lock particular drive of your computer that the **other user can’t see your personal data**, or if you give your personal computer to another user, then if you want, **how to keep safe our drive** from another users and **everyone can see it but can’t be open** then you must follow these step-\
![How to lock or prevent a particular drive(C, D, E…) in our PC without using any software?](https://answers.mindstick.com/questionanswer/f1116556-2d55-4d60-b848-3aec0a4b5f69/images/39733cc7-916b-4340-afbc-7a9d15985a84.jpeg)\
**Step 1:** Open cmd and **type “gpedit.msc”** and click on ok. **(gpedit.msc---> Group Policy Editor. Microsoft controller**)**Step 2:** Go to “**User Configuration”** section and click on the "**Administrative template".** **Step 3:** After that click on **“All Settings”.** **Step 4:** search **“Prevent access to drives from My Computer”** and after that double click on these search.**Step 5:** Choose “**Enabled”** option that shown in below screen and “ select your drive”. In my PC we select “**Restrict D Drive only”** then Following window will appear-\
![How to lock or prevent a particular drive(C, D, E…) in our PC without using any software?](https://answers.mindstick.com/questionanswer/f1116556-2d55-4d60-b848-3aec0a4b5f69/images/4dda0d0a-c530-4b18-9c89-b2c81cbe3916.png)\
**Step 6:** Finally click on an **apply** button after that click on **ok**. Go to my computer and click on the drive(C or D or E….) that you have locked or prevent, then those drives can’t be open.\
**How to unlock your Drive after lock :****Step 1:** Follow the above three steps and search “**Prevent access to drives from My Computer”** and after that double click on these search.**Step 2:** Then select “**Not Configured”** option and click on **apply** button.Finally, anyone can again access your drive.\
\
**"Thanks!!! for Reading"**


---

Original Source: https://answers.mindstick.com/qa/51746/how-to-lock-or-prevent-a-particular-drive-c-d-e-in-our-pc-without-using-any-software

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
