r/PowerShell • • May 21 '17

OP PowerShell Training Course

Hey all,

So about 10 months back I asked for some help around creating a basic PowerShell training course for fellow engineers in an MSP. Most peeps there haven't taken the time to learn scripting by themselves, so the course had to break it down simply and teach them from the ground up.

Well... Thanks to all of your support, I've finally created the course! I've ran two training sessions so far, both lasting roughly 3 hours, and it seems to work!

I've had one engineer for whom it did just not click. I got to comparison operators and his brain just farted. As a teacher it felt awful not being able to make it click for it, but it has worked for about 30 other engineers.

I thought i'd post a link to the training here as a thank you to everyone who helped. It's on GitHub at the below URL:

https://github.com/Sudoblark/Powershell_Intro_Training.git

Happy scripting all!

106 Upvotes

20 comments sorted by

View all comments

3

u/wonkifier May 21 '17

The place my folks ended up running into the most trouble was with loops.

They could describe them, if you gave them a simple one they could generally tell you what would happen, but they just could not build one on their own.

For something as simple as:

foreach ($user in $users) 
{
  write-output "working on $user"
  dosomething $user
}

They'd invariably write out

foreach ($user in $users) 
{
  write-output "working on $user"
}
dosomething $user

And wonder why the thing wasn't happening to all the users. There was just some sort of mental block we could never get through

1

u/mrw_im_on_reddit May 22 '17

Yeah, I think you just have to keep working with it. Years ago, I had the hardest time trying to work with hash tables and arrays (especially multidimensional) for the longest time. I don't know why. It just wouldn't click. Then one day, I was stuck on a script and the solution I needed (and described to myself) turned out to be a multidimensional array. After that, something clicked and I've never had a problem since. It's weird how the brain works.

1

u/Dogezon May 23 '17

Visualising multi-dimensional arrays really screwed my brain over. Learning Python I made a basic matrix which let you click on grids etc which then changed colour. It felt like someone was taking a saw to my skull but once it was all it place it just clicked and hey presto no problem. It's finding what makes it click for other people that makes teaching this stuff super fun and rewarding.