Cannot move logs file in windows server 2012 R2

Chethiya Amarasinghe 106 Reputation points

Environment details:

I recently migrated on premise Windows 2012 R2 server to Azure cloud. Once migrated I enabled Azure update management and backup for the migrated virtual machine. NLA (Network level authentication) is disabled for this machine.


I am trying to move logs files (C:\Windows\System32\winevt\Logs) in the virtual machine to another location to mitigate disk capacity. But when I move it gives me this error "the action cannot be completed because the file is open in dhcp client". But I can copy those files in to another location while I cannot move or delete.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,285 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,542 questions
{count} votes

2 additional answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,961 Reputation points MVP

    @Chethiya Amarasinghe

    I released the lock this way:

    Start -> Services
    Locate Windows Event Log
    Right click -> Restart

    Solution: close Event Viewer

    Please don’t forget to Accept the answer and up-vote wherever the information provided helps you, this can be beneficial to other community members.

    3 people found this answer helpful.

  2. Dave Patrick 426.2K Reputation points MVP

    Are you just trying to copy the files? or move the log location? Assuming the latter you'll need to edit the Reg_Expand_Sz string named File to the new location for each of the event logs.


    --please don't forget to Accept as answer if the reply is helpful--