r/PowerShell 19d ago

Question Beginner

Hello *,

I startet weeks ago at work to learn powershell. It’s difficult for me to learn something, with useless things were I don’t get any profit. So colleagues gave me real exercises that could be need in the future. Now I finished them. I’m asking if there is maybe a website, that shows code, and I have to say what it does. To learn more. Is there a website like this ?

0 Upvotes

12 comments sorted by

4

u/BlackV 19d ago edited 19d ago

I startet weeks ago at work to learn powershell. It’s difficult for me to learn something,

thee are a bunch of posts in this sub with how to start learning and using powershell

So colleagues gave me real exercises that could be need in the future. Now I finished them. I’m asking if there is maybe a website, that shows code, and I have to say what it does.

there is PSKoans module, which goes over basic powershell usage in a test based manner, you have to get each test right before moving to the next

find-PSResource -Type Module -Name pskoans

but realistically if you are past basic ish powershell, you are likely better off learning as you go with your normal daily tasks

need a password reset, OK how do I do that

  • get an aduser x
  • get a password string
  • convert that string to a secure string
  • take the initial user object from step 1 and set the password for that account

all of those things will involve some small challenges that'd need to be solved

take your daily tasks, break them down to steps, how do I powershell each step, build from there

learning from a website or a book or AI only goes so far, DOING goes much much further, and stays with you longer

0

u/Jguan617 15d ago

With the use of chat you can aim to make 1 automation a week using powershell to replace your current manual task. It will stack up quickly.

1

u/ninhaomah 19d ago

If it's for work then doesn't you already have tasks that need to use PowerShell ?

-2

u/Round-Ad-2906 19d ago

Yes and no. The fact is: Every currently available task has already been scripted. I have, in fact, already expanded and improved quite a few of them. And simply rewriting the scripts from scratch would be a pointless exercise for me.

0

u/ninhaomah 19d ago

Ok. Well , others have replied and posted some links too. You might want to discuss with them.

1

u/node77 19d ago

A nice place for that, and many other things is adamtheautomator.com … personal friend, just look at the PowerShell section, hundreds of clear examples, on a beginner level to advanced. It’s all free, and much more than just PowerShell.

1

u/Modify- 19d ago

There are some YouTube playlists you can take a look at.
Maybe some of the topics might interest you or might give you inspiration:

0

u/No-Quail5810 19d ago

If you want to post your code publicly, you can use GitHub. Though I'd advise you think about what licence you want to publish it under. MIT is often used for a "do whatever you want" style licence, but you'll have to decide what you want.

0

u/thomas29needles 19d ago

Exercism has a PowerShell track (https://exercism.org/tracks/powershell), but the exercises they offer are less scripting and more like traditional programming assignments when you learn for example Java or Python. This is mainly because exercises on the site are standardised across different languages.

-4

u/TheSizeOfACow 19d ago

Claude.ai can do that. Part of the training will be verifying it is correct. But at a beginner level it will most likely get everything right.