PowerShell Scoping for Mere Mortals.- Anthony Allen - PSCONFEU 2020
Channel: PowerShell Conference EU
Date: 29/05/2020

In this session we will have a look from the ground up at how scoping in PowerShell works. We'll start off from the basics of the differences between dynamic and lexical scoping, working our way through modifying variables in different scopes and digging into what session state is and how we can use it to modify variables and even function definitions in runspaces. We will also look at the mechanisms of how PowerShell implements scoping behind the scenes to get a solid understanding of the principles shown. This is the session for you who is a visual learner, there will be plenty of visualizations as well as lots of code examples, and dives into the PowerShell source code to demonstrate what we have learnt.