Replace locked files at Windows NT Boot
This kbarticle lists standard approaches to replace locked, open Windows NT
files and then details clever use of the registry and value
PendingFileRenameOperations to replace files in use by NT : Q181345.
Related:
Replace locked files with InUse.exe