Jump to content

Recommended Posts

Posted (edited)

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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