Powershell and EWS contact folder

Hi,

I would like to get help with a question that I can't solve by myself.

I have a Powershell script that, when executed, checks an specified mailbox. It search for a contact folder named CorporateContacts. If exists, deletes it and creates one again. If not, create one. In both cases after create, copy there all the contacts in the GAL (i took this from scripting guru page).

Now, I need to modify it and I don't know how to do. Now, if the contact folder exists, I need that leaves all entries as is, and only copy contacts from the GAL which are not yet in the contacts folder. 

How can I accomplish it?

Thanks

July 10th, 2015 3:18am

You're basically asking someone to write you a script.  I can't do that for you, but I can point you to Exchange Web Services.  You can run EWS in PowerShell, although the documentation is rather sketchy so you'll have to figure out a lot of it yourself.
Free Windows Admin Tool Kit Click here and download it now
July 10th, 2015 2:35pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics