Send email Exchange Web Services PowerShell

Send email Exchange Web Services PowerShell

Hello,

Since PowerShell version 1 there is a way to send mail with it. In v1, this was not strait forward, you needed to create a SMTP object from .net, and then use it to send an email based on an MailMessage object. In v2, you get the Send-MailMessage cmdlet. Those two methods use an SMTP server, there is a third one, with Exchange Web Services. There isn’t a real benefit for using those beside learn how to use EWS for doing greater things. Indeed, you can do a lot more with EWS than just send mail. Continue reading

Sync UsageLocation from Active Directory

Sync UsageLocation from Active Directory

Hello,

When using Office 365, you need to have some kind of sync engine. the preferred one from Microsoft is “Azure Active Directory Connect” (AADConnect). By default, it sync a lot of attributes, but each time you assign a license on a user, you still need to specify a “Usage location”, and then, a license SKU. Continue reading