EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials PowerShell Tutorial How To Install PowerShell
Secondary Sidebar
PowerShell Tutorial
  • Basics
    • PowerShell Restart Service
    • PowerShell comment
    • PowerShell Map Network Drive
    • PowerShell Append to File
    • PowerShell print
    • What is PowerShell
    • Uses Of Powershell
    • PowerShell Empire
    • PowerShell Parameter
    • PowerShell Stop Service
    • PowerShell Versions
    • How To Install PowerShell
    • PowerShell uninstall module
    • How to Use PowerShell?
    • PowerShell Logging
    • PowerShell Tools
    • PowerShell Commands
    • PowerShell Version Command
    • PowerShell Administrator
    • PowerShell Modules
    • PowerShell Registry
    • PowerShell block Comment
    • PowerShell Verbs
    • PowerShell list
    • PowerShell add user to group
    • PowerShell Write to Console
    • Variable in PowerShell
    • PowerShell New Line
    • PowerShell prompt for input
    • PowerShell File Extension
    • Powershell Remotesigned
    • PowerShell Write to File
    • PowerShell Ping
    • PowerShell wget
    • PowerShell Global variable
    • PowerShell Get-ADGroup
    • Array in PowerShell
    • PowerShell Multidimensional Array
    • PowerShell Array of Strings
    • PowerShell? join array
    • Useful PowerShell Scripts
    • String in PowerShell
    • PowerShell Switch Statement
    • PowerShell Function Parameters
    • PowerShell vs PowerShell ISE
    • PowerShell test-connection
    • PowerShell Test-NetConnection
    • PowerShell GUI
    • PowerShell Variable in String
    • PowerShell Active Directory
  • Variables
    • PowerShell Variables
    • PowerShell Environment Variables
    • PowerShell set environment variable
    • Hashtable in PowerShell
    • Set Variable in PowerShell
  • Operators
    • PowerShell Operators
    • Comparison Operators in PowerShell
    • Logical Operators in PowerShell
    • PowerShell Boolean
    • PowerShell Like Operator
  • cmdlet
    • PowerShell Wait
    • PowerShell Match
    • cmdlets in PowerShell
    • Start PowerShell from cmd
    • Add-Content in PowerShell
    • Get Help in PowerShell
    • PowerShell Copy-Item
    • PowerShell Remove-Item
    • PowerShell Move-Item
    • Get Command in PowerShell
    • PowerShell Run Command
    • Windows PowerShell ISE
    • Windows Powershell Commands
    • WinRM PowerShell
    • PowerShell Date
    • Powershell Write-Host
    • PowerShell Get-ChildItem
    • PowerShell Sort-Object
    • PowerShell Where Object
    • PowerShell Set-Content
    • PowerShell Set-Location
    • PowerShell Invoke-Command
    • PowerShell Invoke-Webrequest
    • PowerShell Get-Location
    • PowerShell Get-Date
    • PowerShell Get-Service
    • PowerShell Test-Path
    • Powershell Module Path
    • PowerShell Out-File
    • PowerShell if File Exists
    • Powershell Copy File
    • PowerShell Delete File
    • PowerShell New-Item
    • PowerShell Rename-Item
    • PowerShell ComputerName
    • PowerShell Get-Content
    • PowerShell Get-Item
    • PowerShell Get-ADUser
    • PowerShell Grep
    • PowerShell Concatenate String
    • PowerShell Get-Process
    • PowerShell Count
    • PowerShell pause
  • Control Statements
    • If Statement in PowerShell
    • If Else in PowerShell
    • Else If in PowerShell
    • Loops in PowerShell
    • For loop in PowerShell
    • PowerShell While Loop
    • PowerShell do while
    • PowerShell Loop through Array
    • PowerShell add to array
    • PowerShell ForEach Loop
    • PowerShell Break
    • PowerShell Continue
    • Switch Case in PowerShell
    • PowerShell If-Not
    • Try-catch in PowerShell
  • Functions
    • PowerShell Functions
    • PowerShell String Functions
    • powershell nslookup
    • PowerShell here string
    • PowerShell Wildcards
    • Regex in PowerShell
    • PowerShell not like
    • PowerShell Filter
    • PowerShell Sleep
    • PowerShell where
    • PowerShell join string
    • PowerShell Exit
    • PowerShell null
    • PowerShell Dictionary
    • PowerShell Location
    • PowerShell Start-Service
    • PowerShell is not digitally signed
    • PowerShell Uptime
    • PowerShell Create Directory
    • PowerShell Trim
    • PowerShell Join-Path
    • PowerShell Execution Policy
    • PowerShell SubString
    • PowerShell Format Table
    • PowerShell Import Module
    • PowerShell ForEach Object
    • PowerShell Alias
    • PowerShell Scheduled Task
    • PowerShell Convert String to Date
    • PowerShell Split String
    • PowerShell Multiline String
    • PowerShell MultiLine Comment
    • PowerShell Rename Folder
    • PowerShell Delete Folder
    • PowerShell String Replace
    • PowerShell join
    • PowerShell xcopy
    • PowerShell Base64
    • PowerShell Tail
    • PowerShell User List
    • PowerShell remove User from group
    • PowerShell JSON Format
    • PowerShell Send Mail
    • PowerShell Convert to String
    • PowerShell Start-Process
    • PowerShell change directory
    • PowerShell Open File
    • PowerShell Batch File
    • PowerShell ZIP
    • PowerShell unzip
    • PowerShell XML
    • PowerShell XML Parsing
    • Remote PowerShell
    • PowerShell Escape Character
    • PowerShell scriptblock
    • PowerShell Executable Location
    • PowerShell Import-CSV?
    • PowerShell Export CSV
  • Interview Questions
    • PowerShell Interview Questions

Related Courses

Shell Scripting Course

All in One Data Science Courses

Data Visualization Courses

How To Install PowerShell

By Priya PedamkarPriya Pedamkar

How To Install PowerShell

How To Install PowerShell

The following article provides an outline for How To Install PowerShell. PowerShell is a task automation engine from Microsoft with a command-line shell and associated scripting language. Windows PowerShell is an open-source whose base source code is available on GitHub. It is built on a .NET framework, while the PowerShell Core is built on .NET Core. It helps administrators and IT professionals to automate system tasks, configure and manage operating systems such as Windows, Linux and macOS, and their applications and processes. Its equivalent in Linux is known as Bash Scripting. It is an object-oriented engine, i.e. it is based on objects. Commands of Windows PowerShell are called cmdlets which are .NET classes. These perform an action and, as output, returns an object that can be pipelined as an input to another command.

PowerShell functions are grouped together for managing particular tasks called PowerShell Modules. These modules allow administrators to reuse the script or code for the automation of a task. The host application for Windows PowerShell is the Integrated Scripting Environment (ISE). It can access command-line tools, .NET class libraries, and COM objects. There are many versions of PowerShell released till date. It was first made public in September 2003 at the Professional Developers Conference with the name Monad. All versions of Windows PowerShell are compatible with the previous versions of it.

Different Versions of PowerShell

Different versions of PowerShell are as follows:

1. PowerShell 1.0

This was released in November 2006 supported by Windows Server 2003 SP1, Windows XP SP2, and Windows Vista.

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

2. PowerShell 2.0

These released in October 2009 are integrated with Windows Server 2008 R2 and Windows 7. Other available Windows versions that support it are Windows XP Service Pack 3, Windows Vista with Service Pack 1, and Windows Server 2003 with Service Pack 2. Additional features like transactions, PowerShell remoting, Steppable Pipelines, Modules, Script debugging, Eventing, Windows Powershell Integrated Scripting Environment, block comments, new cmdlets, and operators were included.

3. PowerShell 3.0

It was released in September 2012 integrated with Windows 8 and Windows Server 2012. It was made available for Windows Server 2008 with Service Pack 2, Windows 7 with Service Pack 1, and Windows Server 2008 R2 with Service Pack 1. It is a part of Windows Management Framework 3.0, which was made available to the general public in December 2012. New features like session connectivity, scheduled jobs, and Automatic module detection were added.

All in One Data Science Bundle(360+ Courses, 50+ projects)
Python TutorialMachine LearningAWSArtificial Intelligence
TableauR ProgrammingPowerBIDeep Learning
Price
View Courses
360+ Online Courses | 50+ projects | 1500+ Hours | Verifiable Certificates | Lifetime Access
4.7 (86,650 ratings)

4. PowerShell 4.0

It was released in October 2013 integrated with Windows 8.1 and Windows Server 2012 R2. It is also supported by Windows 7 with Service Pack 1, Windows Server 2012, and Windows Server 2008 R2 with Service Pack 1. The default execution Policy was made RemoteSigned, and debugging was enhanced.

5. PowerShell 5.0

It was released in February 2016 integrated with Windows 10 and was made available for Windows 8.1, Windows 7 with Service Pack 1, Windows Server 2012 R2, and Windows Server 2012. Additional features like PowerShell .NET enumerations, Debugging for PowerShell Background Jobs, class definitions, DSC partial configurations, and many more were included.

6. PowerShell 5.1

This was released in January 2017 with the Windows 10 Anniversary Update and in Windows Server 2016. It is the first version that came with two editions of Desktop and Core.

7. PowerShell Core 6.0

It was released to the public on 10 January 2018, while it was announced on 18 August 2016. It is supported in many Windows versions like Windows 10, Windows 8.1, Windows 7 with Service Pack 1, Windows Server 2012 R2, Windows Server 2012 and Windows Server 2016.

Steps to Install PowerShell

Now let us see how to install Windows PowerShell 3.0 on Windows 7:

If you are using versions like Windows 8, 8.1, Windows Server 2012 or Windows Server 2012 R2, then Windows PowerShell 3.0 would be preinstalled in your systems, but if you are working on Windows 7 or Windows Server 208 R2, then Windows PowerShell 3.0 may or may not be preinstalled. There is a possibility that you may be working with version 2.0, which come preinstalled in these versions of Windows.

You can update the version from 2.0 to 3.0. But first, you must ensure that on which version of Windows Powershell you are working. So to check the version.

Step 1: Click on Start, type PowerShell in the search column and select PowerShell console.

PowerShell Installation step 1

Step 2: The PowerShell console will open. Then type the command:

Get- Host | Select-Object Version

The output of that command will tell you the version.

Select-Object Version

If the version is 3.0, then you can start working, but if the version is 2.0, then you need to update it. For this, you must install Windows PowerShell 3.0.

Step 3: You have to download Windows Management Framework 3.0, which has Windows PowerShell 3.0 already included from Microsoft Download Centre. (https://www.microsoft.com/en-us/download/details.aspx?id=34595)

When you open this URL following window will appear; click on download to download the Windows Management Framework 3.0.

Download Windows Management Framework 3.0

Step 4: Choose the desired file and click on next.

PowerShell Installation step 4

Step 5: The file would be downloaded on your system. Open it.

PowerShell Installation step 5

Step 6: It will ask you whether to install it or not. Click on YES.

PowerShell Installation step 6

Step 7: License terms document would appear. Select “I Accept”.

License terms

The installation will begin.

PowerShell Installation step 7-2

Step 8: It will ask to restart the system. Click on Restart Now.

Installation complete step 8

After proper installation, you must ensure that it has been configured for running remote scripts; to do that, run it as an administrator.

Step 9: Click Start -> All Programs -> Accessories -> Windows PowerShell -> right click Windows PowerShell -> Run as administrator.

PowerShell Installation step 9

Step 10: After this, change the execution policy to allow the running of remote scripts.

  • Type: Set-ExecutionPolicy RemoteSigned –Force.

And press ENTER.

To verify that execution policy.

  • Type: Get-ExecutionPolicy.

PowerShell Installation step 10

If the output is RemoteSigned, then everything is configured, and you can start working.

Recommended Articles

This has been a guide to How to Install PowerShell. Here we have discussed the basic concept, different versions and steps to install PowerShell on our system. You may also look at the following articles to learn more –

  1. Top Uses Of Powershell
  2. Comparisons of PowerShell and Python
  3. DIfferences of PowerShell and Bash
  4. Working With PowerShell String Functions
Popular Course in this category
All in One Software Development Bundle (600+ Courses, 50+ projects)
  600+ Online Courses |  3000+ Hours |  Verifiable Certificates |  Lifetime Access
4.6
Price

View Course

Related Courses

Shell Scripting Training (4 Courses, 1 Project)4.9
All in One Data Science Bundle (360+ Courses, 50+ projects)4.8
Data Visualization Training (15 Courses, 5+ Projects)4.7
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Data Science Course

SPSS, Data visualization with Python, Matplotlib Library, Seaborn Package

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more