Powershell Essential With Labs

Hands-on course full of practice exercises - just to start developing your own PowerShell scripts shortly!

Last updated 2022-01-10 | 4

- How to work with PowerShell
- How to use native PowerShell console and Integrated Script Editor
- Thinking in PowerShell (everything is an object)

What you'll learn

How to work with PowerShell
How to use native PowerShell console and Integrated Script Editor
Thinking in PowerShell (everything is an object)
Some basic commands (cmdlets)
The help system
Variables and lists
Controlling the program flow (if
switch
while
for
foreach)
Working with pipeline and pipeline specialized commands (Sort
Where
Measure
Select)
Formatting output

* Requirements

* General knowledge about administation
* General knowledge about programming
* Access to Windows computer (at least Windows 7) with administrative privileges
* PowerShell installed (it is by default) at least version 3

Description

This course id designed for all those, who would like quickly to get some essential knowledge regarding PowerShell and want to put hands on job. 

The topics covered within that course will help you to understand the logic or way of thinking in PowerShell, while we don’t concentrate on sophisticated topics related to some specific windows settings. 

In the course you will find only video materials, no PDF-s to read or web pages to go through. But what is great is that for every lesson there is a short QUIZ that allows you to quickly check if you understand the topic. There are also EXERCISES for you. You should be able to solve them on your own, but if you have problems – no worries, there are SOLUTIONS available as well!

Regarding the technical requirements, all you need is just a computer with Windows and PowerShell in at least version 3 installed and administrator privileges. 

If you don’t know PowerShell at all or just only a little, this course is for you. Maybe you have already downloaded a script from Internet, maybe you have modified it – that’s great! But if you had problems with understanding why the code is written is such and not another way, this tutorial should help you.

We start with basic information on how to start PowerShell console, how to execute commands, how to use help and step by step we come to more advanced topics. PowerShell is a programming language, so you need to know how to work with variables, how to build the if statement, how  to execute a loop, format output, work with pipeline... 

So if you work with windows, you need or want to learn powershell quickly – I recommend you this course. 

Thank you and have fun!

Who this course is for:

  • Windows administrators wishing to start practicing PowerShell
  • Windows power users, who want to automate daily tasks

Course content

8 sections • 94 lectures

Working with PowerShell console - VIDEO Preview 10:03

  • How to start powershell console
  • Useful keyboard shortcuts
  • A couple of useful commands, known as cmd-let and how they are built
  • How to understand a common error regarding missing permissions and how to avoid it

Working with PowerShell console - QUIZ

Working with PowerShell console - LAB Preview 00:33

Working with PowerShell console - ANSWERS Preview 00:22

Integrated Script Editor - VIDEO Preview 05:57

  • What is Integrated Script  Editor?
  • How to work with ISE?
  • Useful keyboard shortcuts

Integrated Script Editor - QUIZ

Integrated Script Editor - LAB Preview 00:29

Integrated Script Editor - ANSWERS Preview 00:24

Aliases - VIDEO Preview 03:36

  • Discovering predefined aliases in PowerShell
  • Creating new aliases

Aliases - QUIZ

Aliases - LAB Preview 00:11

Aliases - ANSWERS Preview 00:09

Getting help about commands - VIDEO Preview 06:43

  • How to use Get-Help command
  • How to find the correct command using Get-Command

Getting help about commands - QUIZ

Getting help about commands - LAB Preview 00:17

Getting help about commands - ANSWERS Preview 00:06

The help system - VIDEO Preview 09:28

  • Detailed information regarding Get-Help, Get-Command i Show-Command
  • How to pass parameters by name and by position
  • How to update help
  • Accessing the about file

The Help System - QUIZ

The help system - LAB Preview 00:27

The help system - ANSWERS Preview 00:35

Passing parameters to commands - VIDEO Preview 05:16

  • Common parameters and their names
  • How to pass a parameter by list, table, file or variable

Passing Parameters to commands - QUIZ

Passing parameters to commands - LAB Preview 00:34

Passing parameters to commands - ANSWERS Preview 00:13

WhatIf and Confirm Parameters - VIDEO Preview 04:59

  • How to test results of a command before that command will be indeed executed
  • How to force a command to ask additional question allowing to proceed
  • When the value of variable $ConfirmPreference should be changed

WhatIf and Confirm Parameters - QUIZ

WhatIf and Confirm Parameters - LAB Preview 01:00

WhatIf and Confirm Parameters - ANSWERS Preview 00:20

Working with pipeline - VIDEO Preview 07:11

  • What is a pipeline?
  • How to write data to a file?
  • How to view data in GridView?
  • How pipeline works?
  • When Get-Member should be used?

Working with pipeline - QUIZ

Working with pipeline - LAB Preview 00:48

Working with pipeline - ANSWERS Preview 00:17

Sort-object - VIDEO Preview 04:34

  • How to use Sort-Object in the pipeline
  • How to sort by multiple properties
  • Sorting in  reverse order 

Sort-Object - QUIZ

Sort-Object - LAB Preview 00:20

Sort-Object - ANSWERS Preview 00:07

Measure-Object - VIDEO Preview 04:11

  • How to count the number of objects
  • How to callulate other measures of objects like sum, minimum, maximum or average
  • How to calculate value basing on a selected property of an object

Measure-Object - QUIZ

Measure-Object - LAB Preview 00:16

Measure-Object - ANSWERS Preview 00:09

Select-Object - VIDEO Preview 06:01

  • How to limit the amount of objects displayed by commands
  • How to select only some properties of columns for objects
  • How to connect sort and select in the pipeline

Select-Object - QUIZ

Select-Object - LAB Preview 00:33

Select-Object - ANSWERS Preview 00:18

Select and calculated properties - VIDEO Preview 06:56

  • How to add a brand new calculated column to the result
  • What is the meaning of variables $PSItem and $_
  • Constant values like 1KN, 1MB etc.
  • How to format calculated values

Select and calculated properties - QUIZ

Select and calculated properties - LAB Preview 00:25

Select and calculated properties - ANSWERS Preview 00:10

Convert, Export and Import - VIDEO Preview 09:40

  • How to work with ConvertFrom and ConvertTo
  • What type is generated by conversion functions
  • Export and import of data from a file

Convert, Export and Import - QUIZ

Convert, Export and Import - LAB Preview 00:40

Convert, Export and Import - ANSWERS Preview 00:14

Where-object - VIDEO Preview 11:17

  • How to build logical expressions
  • How to work with Where-Object
  • What is the difference between simplified and advanced sytax of Where-Object
  • How to build efficient pipelines

Where-object - QUIZ

Where-object - LAB Preview 00:32

Where-object - ANSWERS Preview 00:13

Foreach-Object - VIDEO Preview 07:25

  • How to call methods of objects in the pipeline
  • Differences between simplified and advanced syntax
  • How to execute a method on objects in pipeline
  • How to execute a code before processing the first object in the pipeline
  • How to execute a code after processing the last object in the pipeline

Foreach-Object - QUIZ

Foreach-Object - LAB Preview 00:49

Foreach-Object - ANSWERS Preview 00:14

Formatting output - VIDEO Preview 14:31

Formatting output - QUIZ

Formatting output - LAB Preview 00:24

Formatting output - ANSWERS Preview 00:10

Variables in PowerShell - VIDEO Preview 11:33

  • How to use variables
  • Creating and removing variables
  • Drive Variable:\
  • String variables defined using a quotation mark or using an apostrophe

Variables in PowerShell - QUIZ

Variables in PowerShell - LAB Preview 00:53

Variables in PowerShell - ANSWERS Preview 00:13

Tabular variables (lists) - VIDEO Preview 08:11

  • Crating tabular variables
  • Reading tables from a file
  • Calling elements of a list
  • Properties of the lists

Tabular variables (lists) - QUIZ

Tabular variables (lists) - LAB Preview 00:53

Tabular variables (lists) - ANSWERS Preview 00:13

Variable types - VIDEO Preview 08:13

  • Declaring variables of specific type
  • Advantages of using typed variables
  • Date and type variables
  • String methods
  • Determining variable type
  • Type conversions

Variable types - QUIZ

Variable types - LAB Preview 00:58

Variable types - ANSWERS Preview 00:07

IF statement - VIDEO Preview 11:26

  • How to conditionally execute a part of a script
  • How to work with IF, ELSE and ELSEIF
  • When the statement IF should be used

IF statement - QUIZ

IF statement - LAB Preview 00:44

IF statement - ANSWERS Preview 00:19

SWITCH statement - VIDEO Preview 04:52

  • How SWITCH works
  • Comparison of SWITCH and IF

SWITCH statement - QUIZ

SWITCH statement - LAB Preview 00:35

SWITCH statement - ANSWERS Preview 00:17

WHILE loop - VIDEO Preview 07:13

  • How WHILE loop works
  • Why sometimes WHILE may not be executed at all?
  • WHILE and IF statements used together
  • How BREAK works
  • Typical usage of WHILE

WHILE loop - QUIZ

WHILE loop - LAB Preview 00:48

WHILE loop - ANSWERS Preview 00:14

FOR loop - VIDEO Preview 05:59

  • How FOR loop works
  • What is a "iteration" and what is a "control variable"
  • What is a difference between FOR and FOREACH
  • Comparison of FOREACH loop with cmdlet FOREACH-OBJECT

FOR loop - QUIZ

FOR loop - LAB Preview 00:42

FOR loop - ANSWERS Preview 00:08