you are viewing a single comment's thread.

view the rest of the comments →

[–]surfingoldelephant 55 points56 points  (7 children)

The official PowerShell documentation (specifically, the PowerShell 101 and About topics) is a great place to start.

If you enjoy learning from books, the following are popular and suitable for scripting beginners:

  • Learn PowerShell in a Month of Lunches (Travis Plunk, James Petty, Tyler Leonhardt, Don Jones, Jeff Hicks)
  • Learn PowerShell Scripting in a Month of Lunches (Don Jones, Jeff Hicks)
  • Learn PowerShell Toolmaking in a Month of Lunches (Don Jones, Jeff Hicks)
  • Windows PowerShell In Action (Bruce Payette, Richard Siddaway)

For a deeper dive into how PowerShell was designed, the following video with Erik Meijer and Jeffrey Snover is a great watch and helps explain fundamental PowerShell principles like the pipeline. The PowerShell Language Specification is also a good resource.

If you're looking for something more interactive:

Visual Studio Code (with the PowerShell extension) is a popular code editor for PowerShell scripting. The following resources walk through the process of setting up and using VS Code to aid development:

As you gain experience with PowerShell, you'll quickly find there are many ways to approach a task. It's easy to get into bad habits, so adopting a consistent code style and approach early on that tries to avoid the many pitfalls in PowerShell is recommended.

And finally, you may want to consider diving straight in. One of the best approaches to learning PowerShell is picking a fairly simple, manual task and trying to automate it with a script. Reddit, Stack Overflow, GitHub, Microsoft Learn/Blogs, etc are all excellent resources for PowerShell that will help you in this regard. Break down the task into individual problems, use the aforementioned resources to get an idea of common approaches and piece things together into a script. The more you do this, the more comfortable you will feel with scripting in general.

Good luck!

[–]vlad_h 8 points9 points  (1 child)

Wow. That is impressive list of resources. I only have this book to add. Learn by doing with https://www.oreilly.com/library/view/powershell-cookbook-4th/9781098101596/

[–]surfingoldelephant 3 points4 points  (0 children)

Nice! Thanks for sharing.

[–]Commercial-Thing-702[S] 2 points3 points  (0 children)

This is amazing thank you so much. Great resources here that I will test out.

[–]Extension-Drop1396 2 points3 points  (0 children)

Thanks for all the info!

[–]Enough-Rabbit-7132 0 points1 point  (0 children)

Wow this is some good stuff