PowerShell/docs/learning-powershell
Angel Calvo fe80741cc3 Update learning-powershell.md
Removing the world "Professional" after DevOps
2016-07-28 15:57:58 -07:00
..
debugging-from-commandline.md Fix learning-powershell path 2016-07-28 11:15:42 -07:00
powershell-beginners-guide.md Fix learning-powershell path 2016-07-28 11:15:42 -07:00
README.md Update learning-powershell.md 2016-07-28 15:57:58 -07:00
using-ise.md Fix learning-powershell path 2016-07-28 11:15:42 -07:00
using-vscode.md Fix learning-powershell path 2016-07-28 11:15:42 -07:00
vscode.png Fix learning-powershell path 2016-07-28 11:15:42 -07:00

Learning PowerShell

Whether you're a Developer, a DevOps or an IT Professional, this doc will help you getting started with PowerShell. In this document we'll cover the following: installing PowerShell, samples walkthrough, PowerShell editor, debugger, testing tools and a map book for experienced bash users to get started with PowerShell faster.

The exercises in this document are intended to give you a solid foundation in how to use PowerShell. You won't be a PowerShell guru at the end of reading this material but you will be well on your way with the right set of knowledge to start using PowerShell.

If you have 30 minutes now, lets try it.

Installing PowerShell

First you need to set up your computer working environment if you have not done so. Choose the platform below and follow the instructions. At the end of this exercise, you should be able to launch the PowerShell session.

  • Get PowerShell by installing package

For this tutorial, you do not need to install PowerShell if you are running on Windows. You can launch PowerShell console by pressing Windows key, typing PowerShell, and clicking on Windows PowerShell. However if you want to try out the latest PowerShell, follow the PowerShell on Windows.

  • Alternatively you can get the PowerShell by building it

Getting Started with PowerShell

PowerShell commands follow a Verb-Noun semantic with a set of parameters. It's easy to learn and use PowerShell. For example, Get-Process will display all the running processes on your system. Let's walk through with a few examples from the PowerShell Beginner's Guide.

Now you have learned the basics of PowerShell. Please continue reading if you want to do some development work in PowerShell.

PowerShell Editor

In this section, you will create a PowerShell script using a text editor. You can use your favorite editor to write scripts. We use Visual Studio Code (VS Code) which works on Windows, Linux, and OS X. Click on the following link to create your first PowerShell script.

On Windows, you can also use PowerShell Integrated Scripting Environment (ISE) to edit PowerShell scripts.

PowerShell Debugger

Debugging can help you find bugs and fix problems in your PowerShell scripts. Click on the link below to learn more about debugging:

On Windows, you can also use ISE to debug PowerShell scripts.

PowerShell Testing

We recommend using Pester testing tool which is initiated by the PowerShell Community for writing test cases. To use the tool please read Pester Guides and Writing Pester Tests Guidelines.

Map Book for Experienced Bash users

TODO: Don & JP to fill in

Bash PowerShell Description
ls dir List files and folders
cd cd Change directory
mkdir mkdir Create a new folder
Clear, Ctrl+L, Reset cls Clear screen

Commercial Resources