PowerShell Master Class - Data and Objects

  Рет қаралды 25,871

John Savill's Technical Training

John Savill's Technical Training

Күн бұрын

Пікірлер: 35
@imperialdrive
@imperialdrive 2 жыл бұрын
I'm going to echo the other comments but still had to share my 'much wow' sentiment towards you. Fantastic content! Thank you for being so generous with your time, effort, and knowledge/wisdom. It is very much appreciated and I aim to play it forward. Cheers from LA/SF.
@NTFAQGuy
@NTFAQGuy 2 жыл бұрын
Glad you enjoyed it! Thanks for the note!
@chrismcgourty1756
@chrismcgourty1756 3 жыл бұрын
Knew a lot of this but held on with it because the quirks you showed were great. You've got a great style to explaining. Thanks John.
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Thank you, glad it was useful
@NickRoman
@NickRoman Жыл бұрын
Wow, I didn't ever think about using expandproperty that way or didn't know. Forever, I've been putting () around the object like (command).property to get just the property out. Of course, you can also do that with any command that outputs an object without having to use the | select. But, I appreciate knowing both ways.
@geroffmilan3328
@geroffmilan3328 Жыл бұрын
12:25 really glad you covered this, Jon: this is just moving the problem sideways in many cases. My background is penetration testing, so breaking more than making 😏 but the use case for this approach seems to be: when you *can* use an MSI to execute your script, but the target resource does not support using an MSI for access. Or perhaps just where you are running interactively as a given identity, which can be granted access to a Key Vault, but cannot be granted access to one ore more of those target resources.
@iamdedlok
@iamdedlok 3 жыл бұрын
Great vid again John! Loved the treatise on hashtable to objects. I will try to use more PSObjects going fwd. Didn't know you could so easily cast a hashtable to a PSObject! A trick I have found useful when examining what's in the content of complex objects when returned from some other call, is doing a ConvertTo-Json on the returned object. Example ... If I want to find out which property lets me see NetworkInterface ids of VMs in Azure.. Doing a ConvertTo-JSON(Get-AzVm) -Depth 3 .. lets me see it where that property is hiding. Powershell is so powerful ;-) I am trying to learn Bash too, but keep coming back to PowerShell as it feels so much easier and natural to work with. Now only I need to convince my client to install PowershellCore in DevOps pipeline tasks so that I can write powershell as tasks.lol.
@mrtechstawk
@mrtechstawk 4 жыл бұрын
Excellent as always
@NTFAQGuy
@NTFAQGuy 4 жыл бұрын
Thank you! Very kind.
@henrywycislo9454
@henrywycislo9454 3 жыл бұрын
Very descriptive video.. Excellent work
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Thank you
@richard1101
@richard1101 5 ай бұрын
Awesome - Big thank you!
@matrixview
@matrixview 5 жыл бұрын
@John Savill: Thank you so much for creating and posting these great course videos! I love PowerShell, and always looking to learn something new. Hopefully you will also dive into API's, web scraping and html-parsing (which is quite difficult with with PS Core 6.x). How to use Selenium/PhantomJS in PS; or Lucene in PS; meta/proxy-programming (ie. wrapping cmdlets and executables); creating DSL's with PS and LINQ in PS would also be great (specialized) courses. That would be pretty advanced stuff, but that's what interests me... and there aren't many (if any) PS courses yet for that.
@nitti3723
@nitti3723 2 жыл бұрын
So are $global:x, $script:y, $private:z the only way to manually specify what scope I want a variable to use?
@NTFAQGuy
@NTFAQGuy 2 жыл бұрын
Those are typical scope modifiers. Read the docs on scope of looking for more
@darthVikes
@darthVikes 5 жыл бұрын
It would be nice to include what each section is in the KZbin Description section and add times for reference back to the specific section/topics?
@NTFAQGuy
@NTFAQGuy 5 жыл бұрын
That's a good idea. I was focused on getting everything recorded but now I'm done I'll try and go back through and add more detail with the timings like you say. Thanks!
@lightyagami0ben
@lightyagami0ben 4 жыл бұрын
really good stuff !!
@NTFAQGuy
@NTFAQGuy 4 жыл бұрын
Thank you!
@BezKomentare
@BezKomentare 5 жыл бұрын
Excellent video. Thanks!!
@t0ffluss
@t0ffluss 4 жыл бұрын
20:40 - So we're not going to talk about John going to the gym for 6 hours at 3AM? :D
@NTFAQGuy
@NTFAQGuy 4 жыл бұрын
Lol, ironman training :)
@t0ffluss
@t0ffluss 4 жыл бұрын
@@NTFAQGuy #machine ;D
@iamdedlok
@iamdedlok 3 жыл бұрын
Not surprised. He's a beast. The godly kind.
@ibrahimabdeltawab6418
@ibrahimabdeltawab6418 Жыл бұрын
Super! Thanks so much
@manikantaguthula5711
@manikantaguthula5711 3 жыл бұрын
$username =(Get-AzKeyVaultSecret -VaultName -Name samplepassword).SecretValueText isn't supporting now @John
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
they change things. docs has a new example. docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-powershell
@manikantaguthula5711
@manikantaguthula5711 3 жыл бұрын
@@NTFAQGuy Okay sir, thank you very much
@varek9
@varek9 5 жыл бұрын
@John Savill Hello John, I really appreciate your videos, i have learned a lot through them. i have just one question about the credential store. maybe i understood it the wrong way. If you store your password encrypted in a file like this: "P@ssword1" | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString | out-file C:\admin\pw.txt If i do the line above, i get a file with the encrypted Password. I can import the password like this: $pass = Get-Content "C:\admin\pw.txt" | ConvertTo-SecureString The thing is, i can only import the password with user i created the file. so it is only working in the usercontext. That means storing the password in a file is still a safe way, am i right? Best Regards
@NTFAQGuy
@NTFAQGuy 5 жыл бұрын
Anyone with rights on the file would be able to get the content so its really not that secure but better than nothing.
@jano.5485
@jano.5485 Жыл бұрын
Yes I think working with just native Windows capabilities, the Data Protection API (DPAPI) is the safest way to store a credentials since it can only be decrypted by the user who encrypted it and also only on the machine which it was encrypted on.
@issiewizzie
@issiewizzie 5 жыл бұрын
I feel ashamed I should have learnt Powershell 5 years ago.... A better time to start I guess. As for passwords credential in code ... one of our devs followed this bad practice last year.
@NTFAQGuy
@NTFAQGuy 5 жыл бұрын
It happens a lot :-)
PowerShell Master Class - Desired State Configuration
36:32
John Savill's Technical Training
Рет қаралды 38 М.
PowerShell Master Class - PowerShell Scripting
33:42
John Savill's Technical Training
Рет қаралды 109 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 26 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 34 МЛН
PSCustomObject vs Hashtables by Anthony Howell
45:27
PowerShell.org
Рет қаралды 1 М.
PowerShell Master Class - Advanced Scripting Techniques
46:07
John Savill's Technical Training
Рет қаралды 52 М.
PowerShell 7 Tutorials for Beginners #4 : Hashtables & Custom Objects
29:44
6   Weltner   Sophisitcated Techniques of Plain Text Parsing
38:38
PowerShell.org
Рет қаралды 10 М.
PowerShell Master Class - Automation
46:06
John Savill's Technical Training
Рет қаралды 28 М.
40 Years Of Software Engineering Experience In 19 Minutes
19:10
Continuous Delivery
Рет қаралды 91 М.
Getting Ready for DevOps with PowerShell and VS Code
40:28
John Savill's Technical Training
Рет қаралды 32 М.
PowerShell Master Class - Connecting Commands Together
1:06:50
John Savill's Technical Training
Рет қаралды 107 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 549 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 26 МЛН