Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How to fix “The process cannot access the file because another process has locked a portion of the file”
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    How to convert a GPT disk into an MBR disk error: Windows cannot be installed on drive 0 Partition 1 Windows
  • article 1280x720.192a2586 1
    Windows 10 Always On VPN (AOVPN) Overview, features and Requirements Windows Server
  • Enable TPM and ecure boot on HyperV to run windoows 11
    How to run Windows 11 on HyperV Virtualization
  • elasticsearch error feature
    Elasticsearch: How to stop systemd service start operation from timing out Linux
  • print driver
    How to update Printer Drivers on your Windows device Windows
  • Fix 0x800f0831 Windows Update
    Fix 0x800f0831 Error when installing Windows update Windows
  • Banner
    How to determine Tombstone Lifetime in Active Directory Windows Server
  • windows update 03
    How to target WSUS clients with the registry keys Windows Server

How to fix “The process cannot access the file because another process has locked a portion of the file”

Posted on 17/10/202325/10/2023 Christian By Christian No Comments on How to fix “The process cannot access the file because another process has locked a portion of the file”
VMware Error Fix

VMware Workstation is a virtualization software that allows you to run multiple virtual machines (VMs) on a single physical host. This virtualization solution is often used by System Administrators developers, and software testers. Please see how to Create or delete snapshots on VMware Workstation, and How to install Windows Server 2022 on VMware Workstation. In this article, we shall discuss the steps to fix the following error “The process cannot access the file because another process has locked a portion of the file Cannot open the disk”.

Below is the error that was prompted when you try to Power up the VM. In the next section, we shall discuss some of the reasons for this error.

The process cannot access the file because another process has locked a portion of the file Cannot open the disk ‘C:\Users\Christian\Documents\Virtual Machines\Windows Server 2019 – Es-DC\Windows Server 2019 – Es-DC.vmdk’ or one of the snapshot disks it depends on. Module ‘Disk’ power on failed. Failed to start the virtual machine

Reason for the Error “VM file process has locked a portion of the file”

The error message is specific to VMware virtualization and reveals that there are issues with the virtual machine (VM) disk file. Unfortunately, you cannot directly pinpoint the reason for this error as they various issues that can result in this behaviour.

I would advise reviewing the VMware logs to get more specific information about the problem. Logs can provide insights into what caused the issue. But regardless of the root cause, the steps below will help resolve your concerns.

In my case, the VM disk files were locked after reinstalling the VMware Tools and in between the VM restart, the host system restarted due to Windows Updates therefore leading to the disk locking issues.

Solution

To fix the error below. Access the Virtual Machine files by firing up Explorer and navigating to the VM Folder.

process cannot access the file because another process has locked a portion of the file

Alternatively, you could Edit the Virtual Machine Settings or Right-click on the VM to select the “Settings” button as shown below.

Edit Virtual Machine Settings

This will open up the virtual machine settings pane. Navigate to the option menu. Under General, on the right pane of the windows, browse to the working directory as shown below.

Browse VMware working directory

For comfortability, let’s navigate through File Explorer to the following path “C:\Users\Christian\Documents\Virtual Machines\Windows Server 2019”.

Delete VM file with the lck extension

Please delete any *.lck files and folders in the VM folder. Select each folder to delete or delete all at once as you wish.

Delete the locked VM files

When the above steps are completed, close the File Explorer, reopen the VMware Workstation and power on the VM. If the VM is not loaded already to VMware Workstation, load the VM and Power it up.

VMware-file-locked-issue-fixed-

You may be interested in these How to disable Lock Screen on Windows 10, How to disable automatic screen lock in Ubuntu Linux. Also, see how to fix “The security database on the server does not have a computer account for this workstation trust relation [Part 1]“.

FAQ on fixing VMware workstation .lck error

What does the error “The process cannot access the file because another process has locked a portion of the file” mean?

To recap, this error message occurs when a process attempts to access a file. But another process has the exclusive lock portion on it. This exclusive lock prevents other processes from modifying the locked portion of the file simultaneously

Why use VMware workstation?

VMware Workstation enables you to create and run multiple virtual machines on a single host. Each VM is isolated from the others, thereby making it an ideal environment for testing, and development without interference.

I hope you found this blog post on “How to The process cannot access the file because another process has locked a portion of the file”. Please let me know in the comment section if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Virtualization, Windows, Windows Server Tags:Microsoft Windows, Processes, Windows Server 2016

Post navigation

Previous Post: How to Pause Windows Update via Windows Settings
Next Post: Network cable Unplugged: Fix VMware “Warning – Multiple default gateways are intended to provide redundancy to a single network

Related Posts

  • Missing ADML File
    Fix an appropriate resource file could not be found for LAPS Windows
  • windows 10 creators update wallpaper
    Run or Edit and Delete Tasks via Windows Task Scheduler Windows
  • Create Windows Defender Firewall Rule
    Fix Windows defender blocked incoming connection on Windows Network | Monitoring
  • microsoft confirms some pcs freeze after windows 10
    Analyze group policies applied to a user and computer account Windows Server
  • How To Fix “Startup Repair Couldn’t Repair Your PC
    How To Fix “Startup Repair Couldn’t Repair Your PC Windows
  • Featured image Win1022H2
    How to get the Windows 10 Version 22H2 Update Windows

More Related Articles

Missing ADML File Fix an appropriate resource file could not be found for LAPS Windows
windows 10 creators update wallpaper Run or Edit and Delete Tasks via Windows Task Scheduler Windows
Create Windows Defender Firewall Rule Fix Windows defender blocked incoming connection on Windows Network | Monitoring
microsoft confirms some pcs freeze after windows 10 Analyze group policies applied to a user and computer account Windows Server
How To Fix “Startup Repair Couldn’t Repair Your PC How To Fix “Startup Repair Couldn’t Repair Your PC Windows
Featured image Win1022H2 How to get the Windows 10 Version 22H2 Update Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    How to convert a GPT disk into an MBR disk error: Windows cannot be installed on drive 0 Partition 1 Windows
  • article 1280x720.192a2586 1
    Windows 10 Always On VPN (AOVPN) Overview, features and Requirements Windows Server
  • Enable TPM and ecure boot on HyperV to run windoows 11
    How to run Windows 11 on HyperV Virtualization
  • elasticsearch error feature
    Elasticsearch: How to stop systemd service start operation from timing out Linux
  • print driver
    How to update Printer Drivers on your Windows device Windows
  • Fix 0x800f0831 Windows Update
    Fix 0x800f0831 Error when installing Windows update Windows
  • Banner
    How to determine Tombstone Lifetime in Active Directory Windows Server
  • windows update 03
    How to target WSUS clients with the registry keys Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.