Understanding PowerShell Variable Scope in Scripts and Modules

Aug 21, 2024
jeffbrown.tech Logo

jeffbrown.tech

Not all PowerShell variables are created equally! In this video, learn about the different scopes available when working with PowerShell variables. ? Get the Code Here! ? https://github.com/JeffBrownTech/jeffbrowntech_youtube/tree/main/2024-08-21-PowerShellVariableScope ? Read More About This ? PowerShell Variable Scope Guide: Using Scope in Scripts and Modules https://www.varonis.com/blog/powershell-variable-scope Twilio PowerShell Module: https://github.com/JeffBrownTech/twilio-powershell-module/blob/master/twilio-powershell-module/twilio-powershell-module.psm1 ⏰ Chapters ⏰ 00:00 Introduction 00:17 Scope Definitions 01:29 Comparing Global and Script Scope 05:20 Demonstrating Variable/Block Scoping 06:57 Sharing Variables Between Functions 09:40 Reviewing Scope in a Custom Module 12:01 Summary


View Video Transcript
#Computers & Electronics
#Programming