PowerShell 7 Tutorials for Intermediates #1 : Methods (Part 1 of 2)

preview_player
Показать описание
In this video I will go over how to create Methods/Functions/Cmdlets in PowerShell 7, how to create mandatory parameters, validate inputs on parameters, default values, what are the different blocks in a method and why they are so important to learn.

Tags:
PowerShell, jackedprogrammer, powershell 7, how to install powershell 7, powershell 7 on vs code, visual studio code
Рекомендации по теме
Комментарии
Автор

Jack. Thanks for sharing. So far, even it's already 2023. You're youtube videos for PowerShell tutorials are far way more advance even on those tutorials in Udemy. Keep it up.

RozzClips
Автор

Jack I have to admit this really some fantastic information. I can not get over what you went through in this video. I would really love if you could hold an open or live video one where we could interact with you and ask some questions as mine are growing by the hour here. Thank you so very much for doing these.

richardgarrow
Автор

Thanks for this video, its full of useful info. One feedback is, it would be nice if we could see the entire code instead of your video covering parts of it.

dyland
Автор

Great video! Can't wait for the module video. Video idea: Module manifests and best practices for module file structure of modules. I've been trying to research how ppl structure them on repos from like github or psgallery. Little over my head 😅.

staticnoise
Автор

I thought I was the only one that had muscles and did IT/cybersecurity stuff haha glad I found this channel.

Love breaking the stigma of “meatheads are dumb”

Thanks for your instruction!

kaiadkins
Автор

There are allot of beginner powershell videos on youtube but not much for intermediate level scripting. This video is really well done. I look forward to going through the entire playlist.

Also, love the Canadian flag, I am also Canadian. Thanks for the work you put into the video eh? :)

paulmathew
Автор

I like to use the PROCESS block for gathering data for parameters then execute them once in the END block.
PROCESS { $thingsToDo = $_ #many things}
END { doThing $thingsToDo #once }
Depending the nature of "doThing", I find more often if I doThing once in the END block with many $thingsToDo is more processor and memory efficent than doThing many times in the process block.
Your milage may vary.

c-LAW
Автор

Hello - thank you for video
When i am copying this code its gives me the error "" A positional parameter cannot be found that accepts argument "1.0.0"

keyurpatel
Автор

Cool! Why do you use the variable wrapper $($Variable) in $Name for the file name BUT not for the $path. When I use this variable wrapper, what it does, when it is optional, when it is a must is not clear to me. I watched AND DID all the Beginners Series. Somehow I missed the explanation for that!

fpost
Автор

Great information. One thing: your head was in the way of the code A LOT.

tbscotty