Diskpart Has Encountered an Error Access Is Denied | How to Fix

Jean updated on Sep 16, 2019 to Partition Master | How-to Articles

Symptom

"Try to format an 8GB USB flash drive using command prompt and diskpart, but failed midway clean the disk due to the error message.

Diskpart has encountered an error: Access is denied.
See the System Event Log for more information.
"

Cause

Diskpart clean or format commands cannot be properly completed with access denied error because the device is considered to be blocked (or write-protected), and has to be authorized.

Solutions

3 methods are listed below to help you solve the problem. Try them as instructions. 

1. Run the Command Prompt as Admin

To start a command prompt as an administrator

1) Click Start, click All Programs, and then click Accessories.
2) Right-click Command prompt, and then click Run as administrator.
3) If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

Run diskpart again. See if the access is denied error disappears.

2. Remove Write Protection on the Hard Disk, USB Flash Drive or Memory Card

In order to use diskpart to fix the disk is write protected error without access denied error

1. Open up your start menu and click "Run"
2. Type regedit into the box.
3. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
4. Now double click the "WriteProtect" key and change the value to 0.

Registry Alternative - Write-Protection Removal Tool

If you are not professional in computing management and not familiar with command lines, don't worry. EaseUS R&D team has promoted a fresh kit for helping you resolve the write-protection issue on your hard drive, external hard drive, USB or SD card, etc., devices.

EaseUS Tool M is a practical computer fixing tool that is safe and light-weighted. It's a perfect alternative to the command line. 

Use this one-click tool to solve the write-protection issues on your own:

Step 1: DOWDLOAD and install EaseUS Tool M for free.

Step 2: Run EaseUS Tool M on your PC, choose "Write Protection" mode.

Step 3: Select the device which is now "Write-Protected" and click "Disable" to remove the protection.

Remove Write Protection from storage devices.

Have nowhere to find the specified the regedit path? Move on to the final resort.

3. Download Third-Party Format Software to Get Rid of Diskpart Access Denied Problem

Why were you insisting on formatting a disk storage drive or removable storage media in command prompt with diskpart utility? It's tricky, and not a perfect solution for ordinary Windows users. Reasons are apparent to see. As soon as diskpart encountered errors, besides access is denied, many other similar errors only make users go nut. For example, diskpart has encountered an error; the parameter is incorrect, incorrect function, etc.

Therefore, finding a diskpart alternative should be the best way to tackle the diskpart problem that prevents you from formatting a disk, performing a clean or creating a partition. And, EaseUS Partition Master is such an ideal alternative tool that provides all diskpart features for home & office users.

Download EaseUS free partition manager and follow the instruction to install it on your Windows computer (Windows 10, 8.1, 8, 7, XP and Vista are all supported).

Download Now

 Windows 10 is supported

 

Step 1: Launch EaseUS Partition Master, right-click the partition on your external hard drive/USB/SD card which you want to format and choose the "Format" option.

Format Hard Drive Partition - Step 1

Step 2: Assign a new partition label, file system (NTFS/FAT32/EXT2/EXT3), and cluster size to the selected partition, then click "OK".

Format Hard Drive Partition - Step 2

Step 3: In the Warning window, click "OK" to continue.

Format Hard Drive Partition - Step 3

Step 4: Click the "Execute Operation" button in the top-left corner to review the changes, then click "Apply" to start formatting your external hard drive/USB/SD card.

Format Hard Drive Partition - Step 4
 
 

100% of people found this article helpful.

 

Frequently Asked Questions

Why Choose EaseUS Partition Master?

"I've used Partition Master Professional many times to create, delete, format, move, rename, and resize partitions."PCWorld

"Partitioning tools have come a very long since the days of complicated command line utilities and EASEUS Partition Master is one of the most advanced programs available."TECH ADVISOR

"I love that the changes you make with EaseUS Partition Master Free aren't immediately applied to the disks. It makes it way easier to play out what will happen after you've made all the changes."Lifewire

Will the "Migrate OS" feature transfer the Windows system files only or the whole C drive?

To ensure that the migrated system will boot normally, the Migrate OS feature will transfer all the files in the system and the boot partitions. Generally, the boot partition is the C drive so the transfer will include all the files in C.

Does EaseUS Partition Master license apply to multiple computers?

The license of Partition Master Professional and Server editions can be used on 1 computer only, while that for for the Technician and Unlimited editions can be used on multiple machines.

What is the difference between EaseUS Partition Master Trial version and the Free version?

Free is for home users only, with most basic functions available such as partition resize and clone. While trial can help you understand how this product works and test what a full license can do on a business or server OS machine.

Will it cause any data loss after resizing the partition in EaseUS Partition Master?

Generally, it will not cause any data loss or boot issue by resizing a partition. However, in order to protect your data, we suggest that you backup the partition before resizing, in case of any unexpected situations such as power outages, computer hardware failures, etc. You can use EaseUS Todo Backup to backup the partition and its trial version is fully functioned for 30 days.

What should I prepare before resizing the partition?

On the partition that is going to be operated, there might be some files being occupied by other programs. To ensure a successful operation, we suggest that you close all the unnecessary software before resizing that partition. Otherwise, EaseUS Partition Master will detect the partition being locked by the other software and require a reboot to resize the partition under boot mode.

About EaseUS Partition Master

All-round disk & partition management software for personal and commercial use. Let it manage your storage drive: resize, format, delete, clone, convert, etc.