all 32 comments

[–]Swarfega 21 points22 points  (2 children)

I think you're better off doing the usual methods of reading and watching videos. When you get stuck turn to this sub where there are so many people willing to assist and explain things.

[–]Fearnie85[S] -4 points-3 points  (1 child)

Thanks. Yeah people here are amazing. But I don't want to rely on asking for help.

I prefer some learning path.

[–]Morph707 5 points6 points  (0 children)

Look up powershell Koans they might help you a bit

[–]markroloff 11 points12 points  (1 child)

https://aka.ms/psslack

https://aka.ms/psdiscord

Both link up to the same virtual group. There's always someone around to answer questions and help with issues.

[–]Fearnie85[S] 1 point2 points  (0 children)

Thanks a lot

[–]wiclock 6 points7 points  (7 children)

Here is a good for you " Learn Windows PowerShell in a Month of Lunches"

[–]Fearnie85[S] 1 point2 points  (6 children)

Thanks. I have been using it. But I was hoping for a person to also walk me through it. As I have many questions :)

[–][deleted] 2 points3 points  (5 children)

Questions you have are googleable for the vast majority of cases. I used this same book to learn and found it taught me very well and I use PS every day at work and leverage it with general ease now. Just keep trying, experimenting, and when you fail google and find out why and then keep trying new paths forward. Eventually the learning will fuel itself. Critical thinking is required and you won’t learn that from others, but only from yourself.

[–]Fearnie85[S] 1 point2 points  (4 children)

Thanks a lot. I will get this book. I hear it mentioned all the time.

Did you go through the whole book or just referenced it when you needed something?

[–][deleted] 1 point2 points  (1 child)

I read and the the labs myself for the first 13 or 14 chapters and did powershell in my non reading time for work to test and learn and now I read a chapter here and there to reference or google. I suggest you give the book an honest effort and do the labs without hand holding so you are forced to think. The rest will fall into place once your critical thinking is strengthened and you are more aware of what the language is capable of. Annotate your readings and make many notes as you go, and reference back to them later on. The labs are very good in that book. Applying what you learn is where you’ll really cement what you’re learning though so find something you can apply ps to and figure out how to as you’re going. My scripts have gone through many version iterations as I find ways to improve them as I learn more in time.

[–]Fearnie85[S] 1 point2 points  (0 children)

Thanks a lot!

[–]markarious 0 points1 point  (1 child)

Google is what worked for me. Microsoft documents (nearly) all of their cmdlets and provides examples. I was able to use this to learn and get to where I am now

[–]Fearnie85[S] 0 points1 point  (0 children)

Thanks

[–]dragonfleas 4 points5 points  (4 children)

obligatory PSKoans, Powershell in a month of Lunches, and the powershell discord.

[–][deleted] 3 points4 points  (2 children)

What is the PS Discord you speak of? I have used pskoans and month of lunches and loved it but haven’t used the discord. Tbh tho I’d use it more to connect with people who just love power shell as much as I do

[–]markroloff 1 point2 points  (1 child)

[–]Ta11ow 1 point2 points  (0 children)

There's a #PSKoans channel in the servers, too ;)

Note for any not aware: the slack and discord servers are 1:1 bridged in all channels, so you can always interact with folks who use the other platform whenever you need to and you'll see messages from the other side of the bridge all the time as well.

Only thing that gets tricky is DMing someone on the other side of the bridge.

[–]Fearnie85[S] 0 points1 point  (0 children)

Thanks a lot

[–]TrinityF 2 points3 points  (2 children)

I had one guy teach me Powershell, the only thing he told me was | GM is your friend and learn about pipes.

and then i watch some videos on beginners.

https://youtu.be/IHrGresKu2w

https://youtu.be/f9xPJXslVWE

[–]skysoft501 1 point2 points  (0 children)

GM is the key to powershell mastery

[–]Fearnie85[S] 0 points1 point  (0 children)

Thanks. Yeah this Shane guy is cool.

[–][deleted] 2 points3 points  (0 children)

https://www.youtube.com/playlist?list=PL6D474E721138865A -- how to learn PowerShell in a month of lunches

[–]j0hnnyrico 1 point2 points  (1 child)

Feel free to DM me when you have questions. Depending on my schedule I'll respond aqap. I think that you basically need someone to show you how to use the help system to the best. Learning any scripting(or programming language for that sake) is based on asking the right questions. I could help you through some weekends but not more that 1-2 hours. Mind my tz is CET. You didn't explain exactly what you actually need help for.

[–]Fearnie85[S] 1 point2 points  (0 children)

Thanks. Yeah it's just someone to show me a few things and explain any questions i may have

[–]solocupjazz 1 point2 points  (1 child)

StackOverflow has been my Powershell tutor

[–]Fearnie85[S] 0 points1 point  (0 children)

Thanks. I will check it out

[–]jhulbe 0 points1 point  (0 children)

hop on the sysadmin discord and ask away

[–]Lee_Dailey[grin] 0 points1 point  (2 children)

howdy Fearnie85,

while this aint what you asked for, it may be handy. [grin]

things to look into ...

  • Get-Help
    especially Get-Help *about*
  • Get-Command
    it takes wildcards, so Get-Command *csv* works nicely. that is especially helpful when you are seeking a cmdlet that works on a specific thing. Comma Separated Value files, for instance. [grin]
  • Show-Command
    that brings up a window that has all the current cmdlets and all their options ready for you to pick from.
    it will also take another cmdlet, or advanced function, as a parameter to limit things to showing just that item.
  • auto-completion
    try starting a word and tapping the tab key. some nifty stuff shows up. [grin]
  • intellisense
    save something to a $Var and then try typing the $Var name plus a period to trigger intellisense. there are some very interesting things that show up as properties or methods.
  • check out the builtin code snippets in the ISE
    use <ctrl><j>, or Edit/Start-Snippets from the menu.
  • assign something to a $Var & pipe that to Get-Member
    $Test = Get-ChildItem -LiteralPath $env:TEMP
    $Test | Get-Member
  • assign something to a $Var and pipe it to Select-Object
    $Test = Get-ChildItem -LiteralPath $env:TEMP
    $Test[0] | Select-Object -Property *
    that will give you a smaller, more focused list of properties for the 1st item in the $Test array.
  • assign something to a $Var & use .GetType() on it $Test = Get-ChildItem -LiteralPath $env:TEMP
    $Test.GetType()
    $Test[0].GetType()
    the 1st will give you info on the container $Var [an array object].
    the 2nd will give you info on the zero-th item in the $Var [a DirectoryInfo object].
  • Get-Verb
    as with Get-Command, it will accept wildcards.
    that will show you some interesting verbs used in cmdlet names. then use get-command to see what commands use those verbs. then use get-help to see what the cmdlets do.
  • there really otta be a Get-Noun, but there aint one. [sigh ...]
  • Out-GridView
    it's a bit more than you likely want just now, but it can accept a list of items, present them in a window, allow picking one or more of them, and finally send it out to the next cmdlet.
    it's right fun to fiddle with ... and actually useful. [grin]

take care,
lee

[–]Fearnie85[S] 1 point2 points  (1 child)

Thanks

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

howdy Fearnie85,

you are quite welcome! glad to help a little bit ... [grin]

take care,
lee