How do I install PowerShell 5.1 on Windows 10?
Skip to main content This browser is no longer supported. Show Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Download and install Windows PowerShell 5.1
In this articleImportant Skype for Business Online was retired on July 31, 2021. If you haven't upgraded your Skype for Business Online users yet, they will be automatically scheduled for an assisted upgrade. If you want to upgrade your organization to Teams yourself, we strongly recommend that you begin planning your upgrade path today. Remember that a successful upgrade aligns technical and user readiness, so be sure to leverage our upgrade guidance as you navigate your journey to Teams. If you are using Windows 10 Anniversary Update, or Windows Server 2016, you should already have Windows PowerShell 5.1. That's because this application comes preinstalled with those operating systems. To determine which version of Microsoft PowerShelll you are using, do the following on your Windows 7 or Windows Server 2008 R2 or Windows Server 2012 computer:
After you've verified that Windows PowerShell 5.1 is installed, you must make sure that PowerShell has been configured for running remote scripts. To do that, start PowerShell as an administrator. On Windows 7, Windows Server 2008 R2, Windows Server 2012, or Windows Server 2012 R2 do the following:
If you are running Windows 8, complete this procedure instead:
After PowerShell is running, you must change the execution policy to allow the running of remote scripts. In the PowerShell console, type the following command and then press ENTER:
Note When you run the preceding command, you might receive the following error message:> Set-ExecutionPolicy : Access to the registry key'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Micrsoft.PowerShell' is denied. This error message typically occurs if you are not running PowerShell under administrator credentials. Close your session of PowerShell, and start a new session as an administrator. To verify that the execution policy has been configured correctly, type the following at the PowerShell prompt and then press ENTER:
If you get back the following value, then everything has been configured correctly:
If you are not currently running Windows PowerShell 5.1, you'll also need to download and install Windows Management Framework 5.1 from the Microsoft Download Center. This is an installation package that includes Windows PowerShell 5.1 and Windows Remote Management (WinRM) 3.0. This installation package might be required if you, for example, are running Windows 7 SP1 and have not yet updated to Windows PowerShell 5.1. If you are running Windows Server 2016, or Windows 10 Anniversary Update, there should be no need to install Windows PowerShell 5.1. Windows PowerShell 5.1 comes preinstalled on those operating systems. Before installing Windows Management Framework 5.1:
If you aren't sure which version of Windows you are running, or you aren't sure if you've installed Windows 7 Service Pack 1, click Start, right-click Computer, and then click Properties. This information will be reported in the System dialog box. To install Windows Management Framework 5.1, complete the procedure in Install and Configure WMF 5.1. After the computer has rebooted, verify that Windows PowerShell can start and that the application can be run under administrative credentials. To do this:
When the PowerShell console appears, you should then verify that the WinRM service is running and has been configured correctly. To verify that the service is running, type the following command at the PowerShell prompt and then press ENTER:
Information about the WinRM service will then be displayed on screen: Status Name DisplayName ------ ---- ----------- Running winrm Windows Remote Management (WS-Manag... If the service Status does not equal "Running", start the WinRM service by typing the following command and then pressing ENTER:
After the service has started, run the following command to make sure that WinRM is using Basic authentication:
Information similar to the following will be displayed onscreen: Auth Basic = true Digest = true Kerberos = true Negotiate = true Certificate = true CredSSP = false If basic authentication has been set to true, then you're ready to use PowerShell to connect to Skype for Business Online. Set up your computer for Windows PowerShell Additional resourcesAdditional resourcesIn this articleIs PowerShell 5.1 supported?Windows PowerShell 5.1 is backward-compatible. Cmdlets, providers, modules, snap-ins, scripts, functions, and profiles that were designed for Windows PowerShell 4.0, Windows PowerShell 3.0, and Windows PowerShell 2.0 generally work in Windows PowerShell 5.1 without changes.
How to install WMF 5.1 on Windows 10?Installing from the Command Prompt. After downloading the correct package for your computer's architecture, open a Command Prompt window with elevated user rights (Run as Administrator). ... . Change directories to the folder into which you have downloaded or copied the WMF 5.1 installation package.. What version of .NET does PowerShell 5.1 use?Windows PowerShell 5.1 requires the full installation of Microsoft . NET Framework 4.5 or higher.
|