How to replace a locked dll (was used)

I have a dll loaded in LSASS. I need to replace it on reboot.

There is an old utility that is used inuse from win2k reskit. It seems to not work anymore (I'm on windows 7)

Does anyone know the right way to do this now?

+3
source share
2 answers

The move file from Sysinternals should do the trick :)

http://technet.microsoft.com/en-us/sysinternals/bb897556

+1
source

DLL Windows 7 ( Vista) ( " 2: " ).

( ):

REM you will need to change this :-)
SET tmpset_SOURCE=c:\Windows\SysWOW64\d3d10_1.dll
SET tmpset_DEST=c:\_tmp\SysWOW64\d3d10_1.dll

REM copy and paste this straight to cmd:
takeown /f %tmpset_DEST%
icacls %tmpset_DEST% /GRANT %USERNAME%:F
copy %tmpset_SOURCE% %tmpset_DEST%
0

Source: https://habr.com/ru/post/1780282/


All Articles