lazywinadmin / Monitor-ADGroupMembership

PowerShell script to monitor Active Directory groups and send an email when someone is changing the membership
MIT License
264 stars 61 forks source link

Use Send-MailMessage instead of SmtpClient / General Cleanup #44

Closed JaimeStill closed 5 years ago

JaimeStill commented 5 years ago

Per issue #43 , Send-MailMessage is used instead of SmtpClient to enable sending emails through Office 365.

Other changes include:

lazywinadmin commented 5 years ago

Thanks @JaimeStill ! Appreciated!

Other than the Email Edit, I see a lot of changes. If you submit another PR please keep the changes focus on one particular aspect, easier to review :sweat_smile:

I agree with most of your changes except for:

JaimeStill commented 5 years ago

No worries! Apologies for how chaotic the commit was, I'd just pushed up the whole revision I'd made not thinking you may want a PR for it.

Definitely more acquainted with C# / full stack dev than PowerShell, but it's something I enjoy and find fascinating. I've done some really cool stuff building web apps centered around calling PS stuff via Web API. If you'd be interested in anything like that, feel free to shoot me an email (on my profile)!