Win11で新しいメモ帳(UWPバージョン)をアンインストールすると、エクスプローラーの右クリックメニューの「新規作成」からテキストファイルのテンプレートが消えていることがあります。その対処方法です。
管理者でコマンドプロンプトを立ち上げ、以下のコマンドを入れます。
reg add "HKCR\.txt" /ve /t REG_SZ /d "txtfilelegacy" /f
reg add "HKCR\.txt" /v "Content Type" /t REG_SZ /d "text/plain" /f
reg add "HKCR\.txt" /v "PerceivedType" /t REG_SZ /d "text" /f
reg add "HKCR\.txt\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
reg add "HKCR\txtfilelegacy" /ve /t REG_SZ /d "テキスト ドキュメント" /f
taskkill /f /im explorer.exe
start explorer.exe
以上です。

