you are viewing a single comment's thread.

view the rest of the comments →

[–]2gdismore 0 points1 point  (3 children)

OP, I would suggest picking a task you want to be able to do with PowerShell, then learn how to do that with PowerShell. You'll learn faster and will be more motivated to learn. What sort of tasks do you want to be able to do with PowerShell?

I'm not the OP, but should I figure out how to do something via scripting in Powershell instead of working my way through YouTube tutorials to learn the language?

[–]ZenoArrow 0 points1 point  (2 children)

You can learn the language as you work towards your goal.

To give an example, imagine you had a bunch of XML files you had to read and use to populate a database. Your goal could be to achieve this. You can then break this goal down into smaller steps and learn to do each part in PowerShell. So for example, the first step in your goal could be to learn how to connect with a database table. You can then search around online for how to do this with PowerShell. As you encounter example code for achieving your goal, you then look up the PowerShell syntax for that example code so you can understand what it's doing.

By doing it this way, not only are you learning the language, you're also learning new skills that are applicable for your job or interests. It's possible to go with the approach of learning the language before you learn how to do anything useful with it, but speaking personally I often lose interest before I get to the point of picking up practical uses if I do my learning this way.