Jump to content

Replacing Notepad by Notepad2


oskingen

Recommended Posts

Here is the following command.


takeown /f %Systemroot%\notepad.exe
takeown /f %Systemroot%\System32\notepad.exe
icacls %Systemroot%\notepad.exe /grant "%username%":f
icacls %Systemroot%\System32\notepad.exe /grant "%username%":f
IF EXIST %SYSTEMROOT%\SysWOW64 (bcdedit.exe -set loadoptions "DDISABLE_INTEGRITY_CHECKS")
copy %Systemroot%\notepad.exe %Systemroot%\notepad.original.exe
copy %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 /y
copy notepad2\notepad2.exe %Systemroot%\System32\notepad.exe /y

Edited by hannubys
Link to comment
Share on other sites


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...