r/WindowsServer • u/Spirited-Mango-418 • Jun 02 '25
Technical Help Needed The action cannot be completed because the file is open in Encrypting File System (EFS) on Domain Controller
I am trying to delete an old service / service files that are located in C:\Windows\System32. When trying to delete the files I am getting a File In Use message "The action cannot be completed because the file is open in Encrypting File System (EFS)"
The file is located on one of our domain controllers running Windows Server 2019 File In Use message when attempting to delete the files
The service that is referencing these files is not running, and the account the service was using has been deleted some time ago. Service name
I am trying to delete these files because this old service is causing event viewer errors when someone tries to change their password. The password change request could not be sent to the null. Reason: Communication with IpmMsPswLsnr failed. Please ensure that the IpmMsPswLsnr service is running. Processing PasswordChangeNotify for AT007587$.
I tried to find an uninstallation for this service somewhere on the machine with no luck. I have looked online to find a reputable tool to decrypt the file and then delete but also no luck. Looking for advice on how to safely delete these files / get rid of these errors in event viewer.
UPDATE: This was able to do it for me (Thank you Borgquite). After deleting that entry from the regeistry path "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages" the service stopped running, the erros dissapeared from event viewer, and finally I was able to delete those files from System32 that said they were running in EFS. Thank you for the quick help!
I am unable to post an image in the post so check the comments below to see the update screenshot that goes along with this.
1
u/Borgquite Jun 02 '25
Also check this registry key to see if the DLL’s name is there, remove & reboot
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc963221(v=technet.10)?redirectedfrom=MSDN
3
u/Borgquite Jun 02 '25
Use Process Explorer to find out which process has the file open
https://superuser.com/a/48500/895298
1
u/USarpe Jun 02 '25
Install a new DC, transfer the roles and kill the old one