Understanding PowerShell Scriptblocks

preview_player
Показать описание

Scriptblocks are a ubiquitous type of construct in PowerShell. In this video, we're going to cover everything from creating scriptblocks, executing scriptblocks with the call operator, using Invoke-Command to run scriptblocks and even going over some things you need to look out for around variable scoping.

Рекомендации по теме
Комментарии
Автор

Perfect example when a man understands his craft! Thank you for the concise vid, greatly appreciated.

GeneralUseStuff
Автор

Thank you very much for this brilliant video. Very short, detailed and descriptive. Cheers

LyubomirDimitrovSilverbackbg
Автор

Really helpful, thanks. Why would one use a scriptblock over a function?

felixmc
Автор

Very informative...
we can also call the script block with "." (dot-sourcing)
?has this any advantage over using "&" ??

IBITZEE
Автор

cool video and really like the idea - techsnips

gopnthr
Автор

Is it ok if i use scriptblocks just to keep my code neat ? or would i see some toruble down the line ?

nonametrackz
visit shbcf.ru