PowerShell and .NET Basics Using .NET Classes and Objects in PowerShell

  Рет қаралды 5,012

Chasse TAC

Chasse TAC

Күн бұрын

In this video, we have a look at using .NET Classes and Objects from within a PowerShell script or console.
I'll be showing the following:
Regular Cmdlet Output
Calling .NET Classes
Utilizing .NET Documentation and Constructors
Demo Using .NET to Verify Credentials
Demo Using .NET to Audit Group Memberships in Active Directory

Пікірлер: 23
@bartdoggo8613
@bartdoggo8613 Жыл бұрын
You do a great job explaining these topics and concepts. Please make more. I am able to use this new knowledge to ease some of my daily work and understand what is really happening "under the covers."
@chassetac
@chassetac Жыл бұрын
Thanks, life is hectic for me right now but will have more videos going up when I have more time to record them next month
@dreamyangel1858
@dreamyangel1858 Жыл бұрын
Thank you for the video. As a beginner on PowerShell who just started to learn how to use .NET it helped me understand things better
@chassetac
@chassetac Жыл бұрын
You're welcome. Thanks for watching!
@TechWaltMD
@TechWaltMD 6 ай бұрын
I've never seen a walk-thru to accompany the documentation for classes like this for powershell. this video unlocked a huge new level of understanding for me. It does no good to show me the end result if I have no idea of what a coder was thinking and how that is reflected in the script.
@robopipiska2988
@robopipiska2988 Жыл бұрын
I'm watching it for the third time. That's great! Thank you very much!!!
@chassetac
@chassetac Жыл бұрын
You're welcome. Thanks for watching!
@3tlk
@3tlk 7 ай бұрын
This is awesome!! This is equivalent to 'man(1) - Linux manual page'. Finally someone explains how to read .NET documents to beginners.
@saqibansari4440
@saqibansari4440 4 ай бұрын
this is what I was looking for, appreciate the efforts.
@brunobrauchmeier4766
@brunobrauchmeier4766 Жыл бұрын
The most powerful video. Super!
@chassetac
@chassetac Жыл бұрын
Thanks. I get a lot of questions about this in my classes so thought a video would be worth it.
@andywawa7227
@andywawa7227 7 ай бұрын
Thank you for this video. There are countless PowerShell "beginners" videos; surely, they are very important. However, as you progress, you might wish there were some videos covering advanced topics like .NET classes. And here you are, with a very useful and interesting video. I hope you can create more videos on this theme.👍 P.S. At the time of wring I'm using the PowerShell-version: 5.1.14393.6343 37:08 in this video, giving wrong password I get "only" false (which is corrected since the output-type is a bool..
@casedup
@casedup Жыл бұрын
thx sir, great video!
@chassetac
@chassetac Жыл бұрын
you're welcome
@33spes
@33spes Жыл бұрын
hi, i really like this video 😀 i wanted to say for the validateCredentials that it validated true for correct and incorrect domain passwords
@chassetac
@chassetac Жыл бұрын
Yes the principalcontext object can sometimes do that, which makes it frustrating. What you can do is between each validatecredentials method call, use the dispose method to reset things. So after using $ds.validatecredentials() you could then run $ds.dispose() with no arguments. Then try $ds.validatecredentials() again.
@33spes
@33spes Жыл бұрын
@@chassetac I will try that Thanks 😊
@opmfa1850
@opmfa1850 3 ай бұрын
iam having a really hard time loading .net exe files using system.reflection.assembly::load() any tips?
@phanigadivemula8053
@phanigadivemula8053 Жыл бұрын
Audio is very low . wether the problem from my side?
@chassetac
@chassetac Жыл бұрын
Sorry it's low for you. I set my mic to just below the redline in OBS studio to give it an average volume.
@NickRoman
@NickRoman 5 ай бұрын
Use the "Volume Master" add-on to Chrome to boost volume. Somehow this video does indeed have very low volume.
@casedup
@casedup Жыл бұрын
fyi put those try/catches inside a using statement and you don't have to worry about calling dispose method. also.. $user.getauthorizationgroups().name or $user.getauthorizationgroups().samaccountname works without having to pipe to select
@chassetac
@chassetac Жыл бұрын
Thanks for the tip. Appreciate you sharing that with everyone
Working with Strings and Regular Expressions in PowerShell
56:29
Chasse TAC
Рет қаралды 1,1 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 89 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 5 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН
Powershell Basics - Pipeline Parameter Binding in DETAIL
43:48
PowerShell Fundamentals  Add-Member Cmdlet
41:59
Chasse TAC
Рет қаралды 1,1 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 222 М.
High Class PowerShell: Objects and Classes in PowerShell
53:09
PowerShell Virtual Group
Рет қаралды 14 М.
Developing with PowerShell Classes: Here be Dragons by Brandon Olin
44:40
PowerShell Fundamentals Exploring the Group-Object cmdlet
26:40
Chasse TAC
Рет қаралды 1,1 М.
Advanced PowerShell - Runspaces
17:04
Adam Driscoll
Рет қаралды 9 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 89 МЛН