Windows

So you can have powershell to the last one in your windows 10

PowerShell is Microsoft’s advanced console that is installed by default in all versions of Windows starting with Windows 7 SP1. This console is much more advanced and comprehensive than CMD, so for more advanced users, it is one of the best ways to manage and control the operating system. For a long time, PowerShell has been written in .NET and has been a proprietary, Windows-only tool. However, today its development is mainly in C # and, in addition, it is a multiplatform and open source program. And since its development is now somewhat more independent, most users use an old version of this program.

When we install Windows 10 from scratch, this console is installed and enabled by default. However, even the latest version of Windows 10 brings an outdated version of PowerShell, usually 5.1. We can check the version that we have installed on our computer right now by opening a console window and executing the following command:

Get-Host | Select-Object Version

Surely for most users this version is more than enough, since they probably neither use nor need the improvements and news of the new versions of PS. However, if we are one of those who like to always be up to date, then we will explain how to install the latest version of PowerShell in Windows 10.

What is PowerShell and what is it for

Powershell is considered an advanced configuration and control tool for a Windows-based system. It can be defined as a system console, a terminal or “CLI” much more advanced and complete than what was MS-DOS in its day or what we now know as CMD. From it, we can fully configure a Windows-based computer without having to depend on a desktop for it.

That is why it is a tool that is not aimed at a common user but is aimed at system administrators. This is because it allows us to automate tasks both on a server and on a computer and perform different functions and tasks, having full control over the system. Along with this, this tool will also help us to control certain Microsoft applications such as SQL Server, Exchange or ISS.

What’s new in PowerShell 7

PowerShell 5, the version that is installed by default in Windows 10, is a very powerful tool, and for most users more than enough. However, there is always room for improvement, especially for advanced users and developers who work with these types of scripts.

Therefore, in the new versions of PowerShell we can find functions and features that, until now, were not available in this tool, such as:

  • Pipeline Parallelism.
  • New operators.
  • New cmdlet (ConciseView and Get-Error).
  • Notifications of new versions.
  • Layers of support for invoking modules in implicit sessions.
  • Ability to invoke resources directly from the console window.

Update PowerShell to the latest version

When updating PowerShell to the latest version, we will have the possibility of doing it both manually and automatically, as we are going to tell you below.

Manual method

Microsoft allows us to install this new version of PowerShell as one more program, with its installer. And being an open source project, we can find all the versions of the new program in the following link.

Here we will find two different versions. The “Release” version , which corresponds to the latest stable version of the program, and the “Preview” version , more advanced but unstable. We can install the one we want, either of the two.

Once the installer is downloaded, we execute it and we will have to follow its wizard like that of any other program. Of course, the installation of the new PowerShell is completely safe and free of all kinds of adware or unwanted software.

When the installation is finished we will have the latest version of PowerShell installed on the PC.

Automatic method

If we do not want to download and install the new version manually, we can also update PowerShell from the program itself. To do this, what we must do is open a PS window with administrator permissions, and execute the following command in it:

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

This will automatically start downloading the latest stable version from Microsoft’s servers. When it is downloaded, the installer will run, and we will have to complete the wizard ourselves, as in the previous step.

When the installer finishes, we will have the latest version of PowerShell installed on our operating system.

How to use the new PowerShell

Regardless of the method we have chosen, this version acts as an independent program, so in Windows 10 we will continue to have version 5 of it installed, along with this new version.

Run the new PowerShell

We can find the new PowerShell in the following path (by default): C> Program Files> PowerShell. To run it, we just have to use the Windows 10 search engine, and we can see how the new version appears here, along with the classic one:

Check the new installed version

When we have the new PowerShell installed, it will appear as ” PowerShell 7 ” within the search engine and from the launchers that we use. However, if we want to be sure of the version we have installed, we can check it very easily by executing, again, the following command:

Get-Host | Select-Object Version

From now on, when there are new versions, the PowerShell window itself will notify us of their availability. And we can reuse either of the two previous methods to install that new version.

Uninstall or remove Powershell from Windows 10

If we want to deactivate PowerShell from our computer we must carry out a few simple steps. The first thing will be to access the Control Panel, for which we can use the search engine from the Start menu. Once we have accessed, we will click on the “Programs” tab and then on the “Activate or deactivate Windows features” function.

Next we will see a window called “Activate or deactivate Windows features.” Here we must display all the options and scroll to the bottom where we will find the “Windows PowerShell” option that is marked as activated. We deactivate the box to automatically eliminate the processes linked to it and click OK

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button