9
3
I'm on Windows Server 2008 64-bit. LockHunter identifies that a folder is locked by the "System" process. I'm not sure why this happens, but my bigger concern is how to unlock it. I'm looking for a solution that can be run from the command line.
LockHunter itself is unable to unlock it. Also, Sysinternals' Process Explorer doesn't find the locked folder's handle. Rebooting is not an option either.
For repeated occurrences where you can't track what's creating the file, try running ProcMon from the SysInternals suite, filtering down on a suitable Path and remembering to include the System process in the filter (which is excluded by default).
As you might need to leave it open for a while, choose Drop Filtered Events from the Filter menu.
When the file is touched you should see a CreateFile event. Opening up that event might reveal an "Impersonating" field with an associated username -- sometimes that might be enough of a clue to move you on. – Tim Barrass – 2015-03-12T12:36:25.613
https://stackoverflow.com/questions/4378192/windows-2008-r2-kernel-system-process-pid-4-is-locking-files-and-folders – music2myear – 2019-01-18T23:06:55.977
This guy shares your view. http://scatteredideas.info/archives/delete-locked-files-32-and-64-bit/
– Nissan Fan – 2009-10-07T16:30:36.213Have you looked at this question: How do I delete a ‘locked’ file in Vista 64?
– nik – 2009-10-07T16:35:19.480It's not just any file, it's a file locked by System that's giving me the problem. I didn't have problems unlocking other files. – ripper234 – 2009-10-07T18:55:49.007