I have a O365 with Exchange, and a local AD.
I want to manage distribution groups and distribution groups members via PS scripts (that will run by scheduled task), that look users' AD attributes (don't know which attributes right now).
The script will be hosted in the local AD.
So If I want to manage distribution groups (DG), I can use PS to connect to my O365, and then manage DG. But I don't know If i'll be able to check AD users' attributes from a PS Session on O365 ?
So I'm wondering what is the best way to handle this.
Can I just manage DG from the AD without the need to connect to O365 Exchange ?
This means that I create AD Group, enable mail, and put users I want, in. Then, the replication will synchronize AD Group with O365 (with DirSync if I'm right).
Do these groups will be see as "Distribution Group" in O365 Exchange view ? And people will be able to email these DG ?
Or Do I have to do some stuff in O365 Exchange side ?
To be clear, question is : Can I create a DG from local AD server in PS (Create-Group), by setting the mail address (and others attributes I dont now yet), and then Exchange will see it as a good DG and I'll be able to send email to it ?
Feel free to ask for more details if needed. hope I'm clear enough.