How to Fix Diskpart has encountered an error access is denied error in Windows 10 [Steps]

What is ‘Diskpart has encountered an error access is denied’ error in Windows 10?

In this article, we are going to discuss on How to fix Diskpart has encountered an error access is denied error in Windows 10. You are provided with easy steps/methods to resolve the issue. Let’s starts the discussion.

‘Diskpart has encountered an error access is denied’ error:

‘Diskpart’: Diskpart is command-line disk partitioning utility included in Windows 2000 and later Microsoft Windows operating system. It is utility used for partitioning internal hard drives but can also format removable media like flash drives or memory cards for example during system installation. This command supports the use of scripts to automate its usage. This will create a 2GB logical partition at the beginning of a free space on the disk and assign it t he drive letter F:, provided that the space requirements are met.

However, several users reported they faced Diskpart has encountered an error access is denied error on their Windows 10/11 computer when trying to perform a Diskpart operation like resizing a partition or trying to format a drive. The error is appeared with message saying ‘Diskpart has encountered an error: Access is denied. See the System Event Log for more information’. The possible reasons behind the issue can be required administrator permission not given to Command Prompt, Write Protection is enabled for the drive. Let’s go for the solution.

How to fix Diskpart has encountered an error access is denied error in Windows 10?

Method 1: Fix Diskpart has encountered an error access is denied error with ‘PC Repair Tool’

‘PC Repair Tool’ is easy & quick way to find and fix BSOD errors, DLL errors, EXE errors, problems with programs/applications, malware or viruses infections in computer, system files or registry issues, and other system issues with just few clicks.

Method 2: Run Command Prompt as administrator

One possible way to fix the issue is to run Command Prompt as Administrator.

Step 1: Type ‘cmd’ in Windows Search Box and press ‘CTRL + SHIFT + ENTER’ keys on keyboard to open ‘Command Prompt as Administrator’

Step 2: Click ‘Yes’ on UAC (User Account Control) prompt if appeared. Now, try to run Diskpart commands and check if the issue is resolved.

Method 3: Remove the Write Protection from the drive

Another possible way to fix the issue is to remove write protection from the drive.

Disable write protection via Diskpart:

Step 1: Press ‘Windows + R’ keys on keyboard, type ‘Diskpart’ in ‘Run’ window, and hit ‘Ok’ button to open ‘Diskpart’ utility

Step 2: Type ‘List Disk’ command and hit ‘Enter’ key to execute. Type ‘Select Disk X’ command and execute it. Here, replace ‘X’ with the number of the disk that you want to select

Step 3: Once the disk is selected, execute the following command to disable write protection for it

attribute disk clear readonly

Step 4: Restart your computer and see if the issue is resolved.

Disable write protection via Registry Editor:

Step 1: Open ‘Registry Editor’ app in Windows PC via Windows Search Box and go to following path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

Step 2: Move over to right-pane, double-click ‘WriteProtect’ and change the value to ‘0’ in order to disable write policy, and hit ‘Ok’ button to save the changes. Once done, check if it works for you.

Method 4: Use a 3rd party tool to resize the partition

You can also use third-party tool to resize the partition in order to fix the issue. You can try Paragon Partition Manager tool for this purpose.

Step 1: Vast ‘https://www.paragon-software.com/free/pm-express/’ page in your browser to download Paragon Partition Manager tool

Step 2: Once downloaded is completed, open the installer and follow on-screen instructions to finish installation.

Step 3: Once installed, open ‘Paragon Hard Disk Manager’ utility and create a account to login with your credentials to complete the online activation. Once done, go to ‘Tools’ and click ‘Partition Manager’.

Step 4: Now, use this utility to complete the same process that was previously failing inside Diskpart.

Conclusion

I am sure this post helped you on How to fix Diskpart has encountered an error access is denied error in Windows 10/11 with easy ways. You can read & follow our instructions to do so. That’s all. For any suggestions or queries, please write on comment box below.