banner



How To Install Windows Powershell 5.0

How to upgrade to PowerShell 5

PowerShell version 5 is the nearly recent iteration of the scripting language and offers new features from previous versions. Admins can upgrade to the new version in a few steps.

Originally released as office of Windows 8.1 and Windows Server 2012 R2, Windows PowerShell version four brought about a ton of useful features. Since its release, it has been backward uniform down to Windows seven and Windows Server 2008 and has been the recommended version to ensure compatibility across your scripts and to take advantage of the new features information technology had to offer. As of 2016, it'southward showing its age, and information technology's time to upgrade to the latest version -- PowerShell v.

For this article, I will upgrade a Windows eight.one client from PowerShell version 4 to the version 5 production preview. However, you tin upgrade any Windows operating system downwardly to Windows seven SP1 and Windows Server 2008 R2.

PowerShell five is part of the Windows Management Framework (WMF) version v package. WMF requires the .NET Framework 4.5 package to be installed. You volition need to install this before upgrading if you're trying to upgrade a Windows seven or Windows Server 2008 calculator. If you have Windows 8 or Windows Server 2012 or higher, .Internet 4.v is already included. To be sure, y'all can run the following command to encounter what version of the .Cyberspace Framework v4 yous take installed.

(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Cyberspace Framework Setup\NDP\v4\Full').Version

If running this control gives an error almost a missing registry central, this typically means you lot do not take a version of the .NET Framework iv.5 installed.

Some applications may not exist compatible

Before you brainstorm installation there are a few gotchas that are worth mentioning. Kickoff, some applications such as Microsoft SharePoint have hard dependencies on a specific PowerShell version. If you take scripts created and y'all of a sudden upgrade the SharePoint server to a later version, the scripts will break. Other applications may have similar dependencies.

Too, even though the bulk of your code built for earlier versions of PowerShell will work, there are some instances where PowerShell version 5 is just different enough to cause problems. The bulk of problems will come with external dependencies similar the aforementioned SharePoint server or vendors that haven't updated the code in their PowerShell support.

Installing PowerShell version five

If you have scripts created and you suddenly upgrade the SharePoint server to a later version, the scripts volition break.

The starting time step is to download the installer. Be sure to pick the appropriate installer for your operating system. Windows seven, Windows viii.1, Windows Server 2008 R2, Windows Server 2012 and Windows Server 2012 R2 x86 and x64 all accept separate downloads. If you lot attempt to install the incorrect one, it will notify you upon installation.

Once yous've got the bits downloaded, it's time to upgrade.

Double click on the installer you previously downloaded. You will be prompted to install the detail KB applicable to your operating system. Observe that the software title is Update for Windows (KBXXXXXXX). When installed, PowerShell volition evidence upwards as beingness installed nether this header in Programs and Features.

Confirm the upgrade, accept the end user license agreement and the installer volition get to work.

When complete, it will ask you lot to reboot to ostend installation. Upon reboot, I always recommend confirming the install was successful. To do this, open up a PowerShell console once more and type $PSVersionTable.PSVersion. If the install was successful, you should run across the number five testify up nether the Major property.

Discover what'southward new with PowerShell 5

At this point, I suggest researching everything this version has to offering. Microsoft provides an overview of many of the nearly useful features and in that location are at present numerous web log manufactures that go over many of the features that PowerShell version v brings. Y'all might find that the lawmaking you wrote for older versions can now be replaced with more efficient, easier-to-read lawmaking that comes with PowerShell 5. Information technology wouldn't hurt to go back through some of those former scripts you have that may exist cumbersome to manage, or perform slowly, and research if any new features or fixes in PowerShell 5 may improve their worthiness.

Editor's note: Microsoft released PowerShell 5 to manufacturing on Feb 24.

Next Steps

Rein in unstructured data with PowerShell 5

Use PowerShell to manage Windows services

Benefits of PowerShell DSC

Dig Deeper on Microsoft deject computing and hybrid services

  • Why you should consider an upgrade from PowerShell five.one to 7

    By: Adam Bertram

  • Ready for Windows Server 2008 end of life

    Past: Brien Posey

  • Meet PowerShell Core half-dozen.0

    By: Ed Tittel

  • What OSes does Azure Update Direction handle?

    By: Stephen Bigelow

Source: https://www.techtarget.com/searchwindowsserver/tip/How-to-upgrade-to-PowerShell-5

Posted by: thompsonkimmilloof.blogspot.com

0 Response to "How To Install Windows Powershell 5.0"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel