Jump to content

Recommended Posts

Posted

Ok Im writing a batch file to replace the logonui.exe in (C:\WINDOWS\system32), if you just copy and paste your logonui.exe over windows logonui.exe, windows will check (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache)which is hiden) and convert/replace your logoui.exe with the original windows logonui.exe. So if you move all of (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache) (Directory+SubDirectorys+files) to (C:\CatRoot2) and (C:\dllcache) then copy over your logonui.exe to (C:\WINDOWS\system32) windows doesnt convert/replace your logonui.exe. Then you can move (C:\CatRoot2) and (C:\dllcache) to there original directory (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache) and there you go you have replaced your logonui.exe with out restarting your pc in safe mode with command promt (most common way to do it). So my problem is I dont think my batch script can copy those directorys cause somthing has a handle on them (a program or the system is using them). Anyone know a way in a batch script you could kill/unlock the handles then copy the directory over. I think winlogon.exe has a handle on (C:\WINDOWS\system32\dllcache) and svchost.exe has a handle on (C:\WINDOWS\system32\CatRoot2). I used unlocker to unlock them then move the directorys manually, then moved my logonui.exe manually and then moved the directorys back manually to test my work and everything worked like a charm my logonui.exe was replaced and working. So now I want a batch file to do it all for me but like I said I think the fact that (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache) are being used is stopping my batch script from working.

So if you have any ideas or know how to unlock a file or directory with a batch file please help me out =)


Posted (edited)

My batch script looks like this right now

xcopy "C:\WINDOWS\system32\CatRoot2\*.*" "C:\CatRoot2" /f /I

xcopy "C:\WINDOWS\system32\dllcache\*.*" "C:\dllcache" /f /I

rd /s /q "C:\WINDOWS\system32\CatRoot2"

rd /s /q "C:\WINDOWS\system32\dllcache"

xcopy "C:\logonui.exe" "C:\WINDOWS\system32\logonui.exe" /f /y

xcopy "C:\CatRoot2\*.*" "C:\WINDOWS\system32\CatRoot2" /f /I

xcopy "C:\dllcache\*.*" "C:\WINDOWS\system32\dllcache" /f /I

rd /s /q "C:\CatRoot2"

rd /s /q "C:\dllcache"

which Im not even sure if that is the right way to do it cause Im not the best at batch scripts just have some basic knowledge

Edited by JayDogg

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...