r/PowerShell • u/[deleted] • Jun 05 '22
Hello dear Powershellers!
I was wondering how long it took You guys to learn powershell and truly understand the functions of powershell.
I’m currently reading Learn Windows PowerShell in a Month of Lunches, Third Edition and at the same time spending all my freetime in powershell following the tasks. I’ve read about 5-6 chapters and feel kind of overwhelmed at times. Is it normal and how should it feel after 2 weeks?
Appreciate all answers/inputs and help to learn powershell :)
Edit: This group is AWESOME! Thanks for all the inputs by all of You 🫡
43
Upvotes
2
u/Dense-Platform3886 Jun 24 '22 edited Jun 24 '22
I use PowerShell everyday for the past 8+ years and I follow the basic philosophy "If it's worth doing once, then it's worth writing a PowerShell script".
I do this for several reasons:
To remember the logic of how I approached the task or process that was asked
To be able to repeat the process again
To improve on the process and develop reusable code
The time it takes to learn PowerShell is dependant on your previous language experiences, your ability to learn new things, your observational skills, your persistence in how you approach difficulties and learn from failures, and how you remember concepts and how to find the details.
The basic concepts about PowerShell you will need to learn and understand are as follows:
Understand the language syntax
Understand the operators and expressions
Understand the language flow controls
Understand Scripting, Pipes, and the built-in CmdLets
Understanding the difference between " (Double Quote) and ' (Single Quote)
Understanding how and when to use Here Strings (@''@) & (@''@)
Understanding how to use .Net accelerators like [string], [System.Collections.ArrayList], [MyClass], etc...
How to import, install, and update Modules & Assemblies
Most everything else is discovery about how to use specific CmdLets and Modules
Then onto advanced subjects like:
Differences between PS 5.1 & PS Core (pwsh)
Programming style & code optimization
How to call / execute multiple PS Scripts using . Sourcing a Script (. "Script path")
How to write code using Dynamic Objects and how to use ($variable.PSObject.Properties.Name)
How to use RegEx (Regular Expressions) in PowerShell
How to create and use PowerShell Data files and how to export PSCustomObjects as PSON data files (*.psd1)
Serialization and Deserialization of JSON
Creating Modules (collection of functions) and how to manage and share them
Parallel processing, RunSpaces, and Threads
How to create GUI front ends to PS Scripts using WinForm Objects or WPF XAML
The learning process should never stop as each day presents new challenges and opportunities. Find a need and develop a solution even if you you need to invest personal time as this is the way to learn and to advance.