© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. SukhijaPowerShell Fast Track https://doi.org/10.1007/978-1-4842-7759-1_1

1. PowerShell Basics

Vikas Sukhija1  
(1)
Waterloo, ON, Canada
 

Let’s start with basic elements and quickly review variables, loops, if/else statements, switches, and functions. These are the heart of any scripting language, and will assist you in creating simple to complex scripts.

I will not delve into PowerShell versions or what PowerShell is. (But here is an easy-to-understand definition without going into depth: PowerShell is a task automation solution made up of a command-line shell and a scripting language.) I also won’t talk about what platforms it can be used on or get and set ...

Get PowerShell Fast Track: Hacks for Non-Coders now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.