To return to the old behavior of notepad, you need to uninstall the
new UWP implementation of notepad. This will make it possible to use
the old notepad from Windows 10, as it's still found in
C:\Windows\System32
. You will need to ignore the message about
a newer version.
This is discussed in detail in the article
How to Restore Old Classic Notepad in Windows 11.
Below is a summary of the methods:
Method 1: Disable the Notepad App execution alias
- Open Settings > Apps > Advanced app settings
- Click "App execution aliases"
- Find "Notepad" in the list and turn off the radio button.
The effect is immediate.
If Microsoft has removed notepad.exe
from C:\Windows\System32
,
you might be able to return it by the following two methods.
Install the classic Notepad program via Optional features
- Open *Settings > System > Optional features"
- Click "View features"
- Type
notepad
- Click install
Select Notepad (system) from the list, and click Next.
Using the DISM command-line to install Classical Notepad
Method 2: Restore Classic Notepad via the registry
Execute this .reg
file :
Windows Registry Editor Version 5.00
;Restore Old Classic Notepad on Windows 11
;Created by Ramesh Srinivasan for Winhelponline.com
;Created on May 6, 2022; Revised on May 12, 2022.
[HKEY_CLASSES_ROOT\Applications\notepad.exe]
"NoOpenWith"=-
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe]
[HKEY_CLASSES_ROOT\txtfilelegacy\DefaultIcon]
@="imageres.dll,-102"
[HKEY_CLASSES_ROOT\txtfilelegacy\shell\open\command]
@="C:\\Windows\\System32\\notepad.exe \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"UseFilter"=dword:00000000
taskkill.exe
, the first invocation of notepad brings up all the killed windows with their content. The windows need to be closed, which means the user has to click "Don't save" for each. Just another bright idea by Microsoft.