Как сброс при изменении переменных системной среды

This tutorial will show you how to reset all Windows Terminal app settings back to default for your account in Windows 10 and Windows 11.

Windows Terminal is a modern host application for the command-line shells you already love, like Command Prompt, PowerShell, and bash (via Windows Subsystem for Linux (WSL)). Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and the ability to create your own themes and customize text, colors, backgrounds, and shortcuts.

Sometimes you may want or need to reset Windows Terminal app settings back to default all at once.

EXAMPLE: Windows Terminal app settings

Reset Windows Terminal App and Settings to Default in Settings

Open Settings (Win+I).

Click/tap on Apps on the left side, and click/tap on Installed apps on the right side. (see screenshot below)

Click/tap on the 3 dots button for the Terminal app, and click/tap on Advanced options. (see screenshot below)

Click/tap on Reset. (see screenshot below)

You can close Settings if you like.

Reset Windows Terminal Settings to Default in Command Prompt

Open Windows Terminal, and select Command Prompt.

Copy and paste the command below into Windows Terminal, and press Enter. (see screenshot below)

del /f /s /q /a “%LocalAppData%PackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalStatesettings.json”​

When the command has successfully deleted the settings.json file, you can close Windows Terminal to apply.

Reset Windows Terminal Settings to Default in PowerShell

Open Windows Terminal, and select Windows PowerShell.

Remove-Item -Path “$env:LOCALAPPDATAPackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalStatesettings.json” -Force​

Reset Windows Terminal Settings to Default in File Explorer

Open File Explorer (Win+E).

Copy and paste the path below into the address bar of File Explorer, and press Enter. (see screenshot below)

Delete the settings.json file.

You can now close File Explorer if you like.

That’s it,
Shawn Brink

Before you proceed, we recommend you create a System Restore Point so that whenever such errors take place, you can just roll back to the previously known stable state of your computer.

:/>  Команды командной строки Windows — самые важные и полезные

Let’s get into the details of each method.

Reset PowerShell to Default settings in the PowerShell

Как сброс при изменении переменных системной среды

It will open the Console Windows Properties window. Change the settings which you have altered to default manually by clicking on each tab.

Once you are done with the changes, click on OK to save the changes.

Manually reset PowerShell and Command Prompt by replacing shortcuts

There are two variants of Windows PowerShell that are installed on an x64 installation of Windows 11/10 namely:

If you use an x86 installation, there will just be Windows PowerShell.

If you wish to reset Windows PowerShell, you need to replace the shortcut as default. For that, download the default versions of shortcuts for Windows PowerShell and Command Prompt from our servers.

Как сброс при изменении переменных системной среды

Now, get any shortcut from our archive and replace it on your computer.

Windows PowerShell on your computer has now been reset to the default settings.

To reset Command Prompt to default settings, you need to use the .reg file you have downloaded earlier. Run the file and if it gives you a security warning, select Run.

Как сброс при изменении переменных системной среды

You will get a message that the registry configuration has been modified.

Reboot your computer and have the Windows Command Prompt with default settings on your computer.

If you wish to do it manually, you can do that too.

Как сброс при изменении переменных системной среды

Now, right-click on the folder named Console on the left side panel and click Delete.

Select Yes for the confirmation prompt that you get.

Reboot your computer and you will find Windows Command Prompt reset to default settings on your computer.

Also Read: PowerShell has stopped working

How do I reset CMD to default settings?

To reset the Command prompt or CMD to default settings, you need to do it manually using the Registry Editor. We have provided the Registry file in the post above. Download the Zip file and run the .reg file to replace the Registry Settings which will automatically reset CMD to default settings. It is recommended to backup Registry settings before you make any changes to not mess up features on your Windows 11/10 PC.

:/>  Как вызовать объект класса в powershell jobs

How do I change PowerShell to default Command Prompt?

To change PowerShell to default Command Prompt, open PowerShell and open Settings by right-clicking on the top bar and selecting Settings. Then, in the Startup tab, click on the drop-down button beside the Default profile. Select Command Prompt and click on Save to save the changes. It will now automatically open Command Prompt as default in PowerShell.

To Reset PowerShell whenever there is a change in your Windows system environment variable, edit your PowerShell profile.

First, we need to open our PowerShell in any terminal. If you’re in Windows 10 or 11 you can use Windows Terminal. Then let us open our PowerShell profile using Notepad.

That command will open your PowerShell profile in Notepad. We will then add a code in the end of our profile, like so:

Your Done 😇 This way every time you update or add or change something on your System Environment Variables. PowerShell will reset and read those variables. You don’t have to restart your machine; you can now only just restart your terminal instead.

What is a PowerShell?

Key features of PowerShell include:

Integration with .NET: PowerShell is built on top of the .NET Framework, which means it can leverage .NET classes and assemblies, expanding its capabilities.

Recommended PowerShell Version

PowerShell 7.x: This is the latest cross-platform version of PowerShell. It’s open-source and works on Windows, macOS, and various Linux distributions. PowerShell 7.x introduces new features, improvements, and compatibility with earlier versions.

It’s important to check for the latest version at the time you’re reading this, as Microsoft may have released newer versions since my last update. You can typically find the latest version on the official Microsoft PowerShell GitHub repository or the Microsoft website.

:/>  Надписи для Steam - Rep, Report, Like, Doge, Icon CS:GO и другие

Always consider your specific needs and the features introduced in the latest version when deciding which version of PowerShell to use. Keep in mind that using a version that is too outdated may mean missing out on security updates and new functionalities.

As a programmer, PowerShell can be a valuable tool for several reasons

DevOps Integration: PowerShell is commonly used in DevOps practices for tasks related to continuous integration, continuous deployment, and infrastructure as code. It helps streamline development workflows and ensures consistency across different stages of the software development life cycle.

Cloud Management: With its cross-platform capabilities, PowerShell is valuable for managing and automating tasks in cloud environments. This is particularly useful if you’re working with cloud platforms like Microsoft Azure, AWS, or others.

Task Automation in Development Workflows: PowerShell scripts can be integrated into development workflows to automate various tasks. This might include tasks like database migrations, setting up development environments, or managing dependencies.

Data Processing and Analysis: PowerShell provides features for text processing, data manipulation, and simple scripting. It can be used for log analysis, parsing data, and performing basic data processing tasks.

Cross-Platform Development: With PowerShell 7 being cross-platform, programmers working on different operating systems, such as Windows, Linux, or macOS, can use a consistent scripting language across environments.

Learning and Skill Development: Familiarity with PowerShell expands your skill set as a programmer. It provides you with another tool in your toolbox for solving problems and efficiently managing various aspects of your development environment.

Background

Access 300+ scripts in the NinjaOne Dojo