oskingen Posted May 14, 2008 Share Posted May 14, 2008 (edited) Here is the following command.takeown /f %Systemroot%\notepad.exetakeown /f %Systemroot%\System32\notepad.exeicacls %Systemroot%\notepad.exe /grant "%username%":ficacls %Systemroot%\System32\notepad.exe /grant "%username%":fIF EXIST %SYSTEMROOT%\SysWOW64 (bcdedit.exe -set loadoptions "DDISABLE_INTEGRITY_CHECKS")copy %Systemroot%\notepad.exe %Systemroot%\notepad.original.execopy %Systemroot%\System32\notepad.exe %Systemroot%\System32\notepad.original.exe ECHO.ECHO Original notepad.exe has been renamed to "notepad.original.exe" in its original folder.ECHO.copy notepad2\notepad2.exe %Systemroot%\notepad.exe /ycopy notepad2\notepad2.exe %Systemroot%\System32\notepad.exe /y Edited May 14, 2008 by hannubys Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now