> How to > Partition Master > [Solved] Diskpart Has Encountered an Error Access Is Denied

[Solved] Diskpart Has Encountered an Error Access Is Denied

Updated on Dec 10, 2018 by Jean to Partition Master

Summary:
Failed to format or clean a USB disk & SD card using diskpart, it says diskpart has encountered an error: access is denied or something like that. It's only because you don't have the permission to run the diskpart command. To fix diskpart access denied error in an efforless way, EaseUS Partition Master can help.

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.

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