Тёмный

PowerShell Functions 

TechThoughts
Подписаться 28 тыс.
Просмотров 42 тыс.
50% 1

Learn how to work with PowerShell Functions. In this episode of Learn PowerShell I dive into what makes up a PowerShell Function. Discover the difference between an advanced and standard PowerShell function. I also tackle the question of why you might write a PowerShell Function vs PowerShell Script. Go beyond theory - this episode uses real life fully functional PowerShell Functions to explore how functions are made and how they operate.
Corresponding TechThoughts write-up:
www.techthoughts.info/powersh...
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
00:00 - Intro
00:26 - Anatomy of a PowerShell Function
04:23 - Function vs Script
06:20 - Get-PublicIP Function Example
07:58 - CmdletBinding
11:05 - PowerShell Function Parameters
17:43 - Get-Weather Function Example
20:41 - Begin Process End
23:53 - PowerShell Function Scopes
27:26 - Final Example Get-Reddit
34:16 - Recap
35:34 - Outro
Learn PowerShell - Episode 11 - PowerShell Functions
Reference PowerShell code examples from this episode:
github.com/techthoughts2/Lear...
Check out the complete Learn PowerShell RU-vid Playlist:
• Learn PowerShell
~
/ jakemorrison
My recommended books for learning PowerShell:
(these affiliate links cost you nothing extra and help support this channel)
- Learn PowerShell in a Month of Lunches: amzn.to/3mlbizz
- Learn PowerShell Scripting in a Month of Lunches: amzn.to/3MtxJxe
- Windows PowerShell in Action: amzn.to/3xkjGp4
- PowerShell Cookbook: amzn.to/3tgCq6F
If you are able, and found this content valuable, please consider a secure donation in the link below. Your contribution helps offset the costs of producing this PowerShell series. Much appreciated!
www.paypal.com/cgi-bin/webscr...
Learn PowerShell online free in this operationally focused PowerShell series. These PowerShell tutorials are designed to get you ramped up and using PowerShell quickly. Each episode provides practical PowerShell examples for using PowerShell in the real world. Whether you are a PowerShell beginner or seeking advance PowerShell training, this Learn PowerShell series covers the topics you'll need to be effective with PowerShell!
These videos were recorded on a lot of my older equipment.
My newer videos use the following equipment:
- Camera: amzn.to/3MsjQPu
- Lens: amzn.to/3NrsKhJ
- Teleprompter: amzn.to/3monqQc
- Mic: Audio-Technica AT2035
- Mic Preamp: amzn.to/3tlOvY6
- Mic Arm: amzn.to/3NXJTiP
- Audio Interface: amzn.to/3xqPqJu
- Lighting: amzn.to/3O1Z2zR
- Rear color lighting: amzn.to/3H5MIMI
#learnPowerShell #PowerShell #PowerShelltraining #PowerShellTutorial

Наука

Опубликовано:

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@George71231
@George71231 Год назад
I wish I could like this many more times, I have spent weeks reading and trying to understand functions. This 30ish minute video has shot my confidence and understanding of functions through the roof and I look forward to building my own functions now. THANK YOU for making this video, it's been a tremendous help, so much more to discover on my own but I have learn enough here to feel confident moving forward. Edit: One month later and I have grown to making my own modules and even manifests. Been sharing the tools I've made and this all around has been so useful
@skorp5677
@skorp5677 4 года назад
No way! I started learning ps a week ago and now you continue the series :D Thank you very much for your awesome work!
@conservativeimmigrant6608
@conservativeimmigrant6608 3 года назад
Went on and donated since this is one of the best courses on coding. The info is available everywhere but the structure and the practical examples makes the difference.
@Techthoughts2
@Techthoughts2 3 года назад
Many thanks. You are the first person that donated, and it was much appreciated. I never got around to linking the account, and as a result, you were refunded. But I appreciate the gesture and thanks for being the first person to donate. It means a lot.
@timmy_team_6285
@timmy_team_6285 Год назад
As a DevOps engineer who uses PS alot, I learnt a few things and my knowledge was solidified further after watching this. Nice video! Subscribed.
@boazrosen1327
@boazrosen1327 Год назад
Amazing tutorial and the best I've see about PowerShell functions. Thank you so much!
@prasadsardeshmukh3898
@prasadsardeshmukh3898 4 года назад
Amazing explanation. Way better than Microsoft's documentation :-D
@Tegle9
@Tegle9 2 года назад
Like Moss from the IT-Crowd would say, "This is INSANELY brilliant!"
@MeOnTheStreets
@MeOnTheStreets 3 года назад
Learning a lot with these series! thanks!
@yavor1
@yavor1 4 года назад
Great presentation. Thank you for your efforts!
@c016smith52
@c016smith52 Год назад
Super helpful and just what I needed; thank you for the completeness of this video!
@RPG_ash
@RPG_ash 4 года назад
Very nice. Great video.
@wasimbagwan5715
@wasimbagwan5715 2 года назад
Thank you very much!! Really Helpful!!
@haddocks
@haddocks Год назад
Great tutorial thanks a lot!
@abhishekkumar-zs1le
@abhishekkumar-zs1le 4 года назад
Thanks for bringing powershell functions. If possible please keep on bringing new videos. It's very heplful
@Techthoughts2
@Techthoughts2 4 года назад
More to come!
@kolesplace
@kolesplace 3 года назад
You have some great instructions. Do you have instruction on the higher level aspects of PowerShell. I have written functions but did not know until I watched this video that I need to type (. ./filename) for my file to be recognized. What does that do?
@ahmaddynugroho
@ahmaddynugroho 3 года назад
Finally, I can start to make my vim-plug manager lol
@Cyrixau
@Cyrixau 3 года назад
How many more videos in the series do you think are left? Also do your blog posts contain all the same info from the youtube vids?
@Techthoughts2
@Techthoughts2 3 года назад
That's a good question. Currently I'm aiming for 15 episodes, but that may end up changing. Let me know if there is something specific you'd like to see covered! Blog posts and videos are pretty similar. The goal was to provide the same content for both, so people could choose their preferred learning format.
@CaptainQwerty
@CaptainQwerty 3 года назад
I must know how you make your cursor blink in that style! Very pleasing compared to a flashing cursor
@dorko3031
@dorko3031 2 года назад
Saw that too and had to research. Add config "editor.cursorBlinking" to settings.json with options of 'blink', 'smooth', 'phase', 'expand' or 'solid'. 'Expand' is the one used in the video.
@kalyanben10
@kalyanben10 3 года назад
right after the function ends.. why do you comment function name? At @25:30 , right after function definition ended, you commented on its name.. is there any advantage or just for clarity?
@Techthoughts2
@Techthoughts2 3 года назад
Great question. When you start writing a lot more functions, and grouping functions together. It can help to see when a function stops/starts. So yes, I have gotten in the habit of including the function name in a comment at the end. When you stare at 6,000+ lines of code it can help to see when a function stops!
@zeroexct
@zeroexct Год назад
Great tutorial but the difficulty spike of this from pws logic vid is massive.
Далее
Manage Cloud with PowerShell
36:56
Просмотров 10 тыс.
PowerShell Scripts
49:37
Просмотров 80 тыс.
Working with the PowerShell Pipeline
15:17
Просмотров 88 тыс.
PowerShell: Writing  Functions
33:11
Просмотров 41 тыс.
Taking Control with PowerShell Logic
27:57
Просмотров 27 тыс.
PowerShell Modules
25:01
Просмотров 12 тыс.
Mastering the curl command line with Daniel Stenberg
3:39:41
PowerShell Remoting
37:12
Просмотров 69 тыс.
PowerShell Errors and Exceptions Handling
27:49
Просмотров 29 тыс.
Understanding Ownership in Rust
25:31
Просмотров 243 тыс.
Getting setup for PowerShell Development
18:42
Просмотров 17 тыс.
Calling REST with PowerShell
16:05
Просмотров 23 тыс.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Собери ПК и Получи 10,000₽
1:00
Просмотров 2,2 млн