コマンドプロンプト(Command Prompt)またはPowerShellをしばらく使用すると、外観をカスタマイズしてしまう可能性があります。結局のところ、デフォルトでは、それらの外観と色は多くの人にとって非常に鈍く見えます。フォント、サイズ、背景色などを変更する場合があります。PowerShellをデフォルトの設定と色にリセットする場合はどうしますか?コマンドプロンプト(cmd)の(Command Prompt's (cmd))色と設定をリセットできますか?残念ながら、「コンソールのデフォルトに戻す」("Restore console default")ボタンはどこにもありません。幸いなことに、いつものように、あなたができることがあります。このガイドを読んで、PowerShellまたはコマンドプロンプト(Command Prompt)をデフォルト設定にリセットする方法を確認してください。
注:(NOTE:)このガイドのいずれかの方法に従う前に、システムの復元ポイント(System Restore point)を作成する必要があります。これにより、結果が気に入らない場合でも、システムを現在の設定に戻すことができます。
PowerShellをデフォルトの色(default color)設定にリセットする方法
PowerShellの(PowerShell's)色と全体的なコンソールの外観は、個別のファイルやレジストリキーではなく、(file or registry key)ショートカットファイル(shortcut file)に保存されます。つまり、PowerShellをデフォルトの色設定にリセットするには、 (default color)[スタート]メニューから(Start Menu)PowerShellの(PowerShell's)ショートカットをリセットする必要があります。まず、ファイルエクスプローラー(File Explorer)を開き、それを使用して次の場所に移動します:"C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell,"。ここで、UserはWindows10ユーザーアカウントの名前です。

Windows PowerShellフォルダーで、リセットするショートカットに応じて、「WindowsPowerShell」および/または「WindowsPowerShell(x86)」ショートカットを削除します。("Windows PowerShell (x86)")

次に、 PowerShell(PowerShell)ショートカットを再作成する必要があります。PowerShellショートカットを作成し、 (PowerShell)PowerShellの実行可能ファイルにポイントするだけでよいことは明らかです。ただし、これを行うと、PowerShellは(PowerShell)配色(color scheme)をデフォルトの状態(default state)に戻しません。
現在、2つのオプションから選択できます。Windows 10 PC(PC and copy)で新しいユーザーアカウントを作成し、 (user account)PowerShellショートカットを"C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell"フォルダーからコピーするか、デフォルトのPowerShellショートカットをダウンロードすることができます。両方の方法を確認するために読んでください:
PCで新しいユーザーアカウントを作成する場合は、作成後に(user account)ファイルエクスプローラーを使用して、[ (File Explorer)"C:\Users\New User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell,"に移動します。ここで、NewUserはそのユーザーのアカウント(New User)フォルダー(account folder)です。次に、そこからPowerShellショートカットをコピーして、 "C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell"フォルダーに貼り付けます。

Windows 10 PCで新しいユーザーアカウントを作成したくない場合は、(user account)このリンクを使用して、元の(this link)PowerShellショートカットを直接ダウンロードできます。PowerShellショートカットをzipファイル(zip file)にパックしました。ダウンロードしてPCのどこかに保存したら、解凍します。

次に、 PowerShellISE(PowerShell ISE)ショートカットを含むWindows10のすべての元のPowerShellショートカットを含むWindowsPowerShellというフォルダーを取得します。リセットするものをデフォルトの色(default color)設定にコピーして、 "C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell"フォルダーに貼り付けます。

ダウンロード:(Download:) PowerShellショートカット(PowerShell Shortcuts)
それでおしまい!PowerShellショートカットの復元方法に関係なく、 (Regardless)PowerShellを開くと、色とレイアウトがデフォルトにリセットさ(layout reset)れます。
レジストリファイルを使用して、(registry file)コマンドプロンプト(Command Prompt)をデフォルト設定にリセットする方法
コマンドプロンプト(cmd)(Command Prompt (cmd))をデフォルトの色(default color)設定にリセットするこの方法は、手を汚したくない場合に従う必要がある方法です。まず、 (Start)CMDDefault.zipファイルをWindows10PCのどこかにダウンロードして保存します。デスクトップ(Desktop)を含め、どの場所でも問題ありません。このセクションの最後にそれへのリンクもあることに注意してください。

ダウンロードしたら、CMDDefault.zipファイルの内容を抽出します。

アーカイブを抽出すると、CMDDefault.regというWindowsレジストリファイル(Windows Registry file)が作成されます。ダブルクリックまたはダブルタップして実行します。

Windows 10は、レジストリファイル(registry file)が信頼できる発行元からのものとして認識されないことを警告する場合があります。それは私たちが作ったものであり、世界中でダウンロードして使用する人はそれほど多くないからです。安全で、コンピュータやデバイス(computer or device)に害を及ぼさないことを信じ(Trust)てください。[実行]を(Run)クリック(Click)またはタップして続行します。

UAC(ユーザーアカウント制御(User Account Control))プロンプトが表示されます。先に進むことを確認します。
![UACプロンプトで[はい]を押します](https://lh3.googleusercontent.com/-nBRzj7oH42M/Yjb42Aox_nI/AAAAAAAAhcM/8vwFaIV9A9EAFg6g-DvYCxmFEz7jPLejACEwYBhgLKuoDABHVOhwW0CBk7YkolKRhlb6URWa_IgJhlV6Uh5HTXSA46rtPZTzcTVDH5E3Inr1300PCuFmPfzlhV9-wZ0cgm5eyq7ZHFxRZXVbHy0npWVZFQ1PONMxdTopZNqunXwLBLiLb67ib1SygjFUxfYmkgsM2KWbfxsJ0dJUmw1O8_eCdFnl3uawCEzgsMAIg1Qc5NZzeL_r4wLfEjXahBctYEmz8PuHb0PPtvGp-r6YtKLJySOhlKEvT2KQlPP_m8uuAu4nd9hM73lCbqdlSPO8Zq50PdX0wx8st7wB0bPkCKfKneQLRTuZCoubxrSAYYcR0TPzO_mZA9q14hTQoKUUP0yEF1F69JKIE4VMhscEvH2o_SFK7IDwFOJoGP2ZHxPnq1oEr-THgN0QuqzqlZwBKlRjYLmCuyWmtQEJcFb0y83vg4HNMcHMnH4lEEvT9qrp3Mqtom7UIrB2jajclGsNQdwU2a7PVl9MgQ1x74JGCA2gUeIiNlJDd9HgeDJzjAFR5NnV04Ho1gVSVvXEJNT-wQ-v1MGrgxZvOE1OzaWw9ezHrC91jfyv8d8BV4tQ7x9Ll0_Vn7OfNGviasNi0v1rdTERPCA9bQI_7ffue7P4Pk2Q2IPY6_4g-aCGST5HqVmLuxaNKxzTo79CRHjCyiNyRBg/s0/4fAcPTRsk9d7bUwo-MkmRpJM49U.png)
次に、続行するかどうかを尋ねられます。[はい]を(Yes)クリック(Click)またはタップすると、 Windowsレジストリ(Windows Registry)にいくつかの変更が加えられます。これらについては、この記事の次のセクションで詳しく説明します。

レジストリエディタ(Registry Editor)は、変更が正常に実行されたことを確認します。[ OK]を(OK)クリック(Click)またはタップします。

コマンドプロンプトが(Command Prompt)デフォルトのルックアンドフィール(default look and feel)にリセットされるようになりました。
ダウンロード:(Download:) CMDデフォルト(CMD Default)
注:(NOTE:)コマンドプロンプト(Command Prompt)のリセットが完了したら、それを最適にパーソナライズする方法について詳しく知りたい場合があります:Windows 10で(Windows 10)コマンドプロンプト(Command Prompt)(cmd)をカスタマイズする方法。
Windowsレジストリを手動で編集して、(Windows Registry)コマンドプロンプト(Command Prompt)をデフォルト設定にリセットする方法
コマンドプロンプト(cmd)(Command Prompt (cmd))をデフォルトの設定と色にリセットするこの方法には、もう少し知識が必要です。自分がパワーユーザー(power user)だと思うなら、先に進んでください。そうでない場合は、前の方法に固執する方が安全です。
レジストリエディタ(Registry Editor)を開き、次の場所に移動します:"Computer > HKEY_CURRENT_USER > Console."

これは、コマンドプロンプト(Command Prompt)が、ウィンドウの外観と使用する色を制御する設定を保持する場所です。Windows 10でCMDの(CMD's)色をデフォルトにリセットする場合は、 Windowsレジストリから(Windows Registry)コンソール(Console)キーを削除する必要があります。コンソール(Console)を右クリックまたはタップアンドホールドして、コンテキストメニューから[削除](Delete)を選択します。

このキーとそのすべてのサブキーを削除することを確認します。

レジストリエディタを(Registry Editor,)閉じると、完了です。次にWindows 10 PCでコマンドプロンプト(Command Prompt)を開くと、デフォルトの外観(default look)になっているはずです。
(Did)PowerShellとコマンドプロンプト(PowerShell and Command Prompt)をデフォルト設定にリセットできましたか?
これで、コマンドプロンプト(Command Prompt)とPowerShellの両方をデフォルト設定にリセットする方法がわかりました。ただし、覚えておくべきことが1つあります。それは、ユーザーアカウント(user account)に対してのみリセットされるということです。これらのツールの視覚的な設定は、「ユーザーごと」に保存されます。他のユーザーアカウント(user account)のウィンドウをリセットする場合は、それらのユーザーアカウント(user account)でログオンしているときに、同じ手順を再度実行する必要があります。ガイドに追加する質問や何かがある場合は、以下のセクションで遠慮なくコメントしてください。
Reset PowerShell and CMD to their default settings
After you work for a while with the Command Prompt or PowerShell, you are likely to end up customizing the way they look. After all, by default, their looks and colors look quite dull for many. You might change the font, its size, the color of the background, and other things. What do you do if you want to reset PowerShell to its default settings and colors? Can you reset Command Prompt's (cmd) colors and settings? Unfortunately, there's no "Restore console default" button available anywhere! Fortunately, as always, there is something you can do. Read this guide to learn how to reset PowerShell or the Command Prompt to its default settings:
NOTE: Before following any of the methods from this guide, you should create a System Restore point. That assures you that you can revert your system to its current settings if you don't like the result.
How to reset PowerShell to its default color settings
PowerShell's colors and overall console looks are stored in its shortcut file instead of a separate file or registry key. In other words, to reset PowerShell to its default color settings, you need to reset PowerShell's shortcut from the Start Menu. Start by opening File Explorer and use it to navigate to this location: "C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell," where User is the name of your Windows 10 user account.

In the Windows PowerShell folder, delete the "Windows PowerShell" and/or "Windows PowerShell (x86)" shortcuts, depending on which one you want to reset.

Now you must recreate the PowerShell shortcuts. It would seem obvious that you could simply create the PowerShell shortcuts and point them at the executable files of PowerShell. However, if you do that, PowerShell doesn't revert its color scheme to its default state.
You have two options that you can choose from right now. You can either create a new user account on your Windows 10 PC and copy the PowerShell shortcuts from its "C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell" folder, or download the default PowerShell shortcuts from us. Read on to see both ways:
If you choose to create a new user account on your PC, after you've created it, use File Explorer to navigate to "C:\Users\New User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell," where New User is that user's account folder. Then, copy PowerShell shortcuts from there, and paste them in your "C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell" folder.

If you prefer not to create a new user account on your Windows 10 PC, you can download the original PowerShell shortcuts directly from us, using this link. We packed the PowerShell shortcuts in a zip file. Once you download it and save it somewhere on your PC, unzip it.

You then get a folder called Windows PowerShell that contains all the original PowerShell shortcuts from Windows 10, including the PowerShell ISE shortcuts. Copy the ones you want to reset to their default color settings, and paste them in your "C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell" folder.

Download: PowerShell Shortcuts
That's it! Regardless of how you chose to restore your PowerShell shortcuts, when you open PowerShell, it should have its colors and layout reset to the defaults.
How to reset Command Prompt to its default settings, using our registry file
This method for resetting Command Prompt (cmd) to its default color settings is the one you should follow if you don't want to get your hands dirty. Start by downloading and saving our CMD Default.zip file somewhere on your Windows 10 PC. Any location is OK, including your Desktop. Note that you can also find a link to it at the end of this section.

Once you've downloaded it, extract the contents of the CMD Default.zip file.

After you extract the archive, you get a Windows Registry file called CMD Default.reg. Double-click or double-tap on it to run it.

Windows 10 might warn you that our registry file is not recognized as coming from a trusted publisher. That's because it was made by us, and there are not that many people who download and use it worldwide. Trust us that it is safe and doesn't do any harm to your computer or device. Click or tap on Run to continue.

A UAC (User Account Control) prompt is displayed. Confirm that you want to go ahead.

Then, you are asked whether you are sure you want to continue. Click or tap on Yes, and a few changes are made to the Windows Registry. They are explained, in detail, in the next section of this article.

The Registry Editor confirms that the changes were performed successfully. Click or tap OK.

The Command Prompt is now reset to its default look and feel.
Download: CMD Default
NOTE: When you are done resetting the Command Prompt, you may want to learn more about how to best personalize it: How to customize the Command Prompt (cmd) in Windows 10.
How to reset Command Prompt to its default settings, by manually editing the Windows Registry
This method for resetting Command Prompt (cmd) to its default settings and colors involves a bit more knowledge on your part. If you consider yourself a power user, then go ahead. If not, it is safer to stick to the previous method.
Open the Registry Editor and navigate to this location: "Computer > HKEY_CURRENT_USER > Console."

This is where Command Prompt keeps the settings that control what its window looks like and what colors it uses. If you want Windows 10 to reset CMD's colors to their defaults, you need to delete the Console key from the Windows Registry. Right-click or tap and hold on Console and select Delete from the contextual menu.

Confirm that you want to delete this key and all its subkeys.

Close the Registry Editor, and you are done: the next time you open the Command Prompt on your Windows 10 PC, it should have its default look.
Did you manage to reset PowerShell and Command Prompt to their default settings?
Now you know how to reset both Command Prompt and PowerShell to their default settings. There's one thing to keep in mind, though: they are reset only for your user account. The visual settings of these tools are stored on a "per user" basis. If you want to reset their windows for other user accounts, you need to go through the same procedures again, while logged on with those user accounts. If you have any questions or something to add to our guide, do not hesitate to comment in the section below.