Comments (13)
I can't 100% vouch for this link, but looks like someone reuploaded the install here: https://github.com/gangstanthony/PowerShell/blob/master/EWSManagedAPI2.2.msi
I found it from the Reddit thread below
https://www.reddit.com/r/exchangeserver/comments/o9jy3y/looking_for_ewsmanagedapimsi/
from ews-office365-contact-sync.
I think you may be confused about what the Azure app does. Even if you set up an app for this script in Azure, you'll still need to install EWS API 2.2 on the host computer. If you're referring to issue #46, the purpose of the Azure app, in that case, is to circumvent the need for multi-factor authentication.
Personally, I use Windows Task Scheduler to run the script every day.
from ews-office365-contact-sync.
i have also unlbock de dll files. now see this error:
A constructor was not found. Cannot find an appropriate constructor for type Microsoft.Exchange.WebServices.Data.OAuthCredentials.
from ews-office365-contact-sync.
Did you also unblock the Microsoft.IdentityModel.Clients.ActiveDirectory.dll file? Is EWS 2.2 installed on the computer? Please refer to the getting started documentation in the README.
from ews-office365-contact-sync.
Dear i did unblock the dll. I don't have ews installed in my laptop đ.
Do you have an link to download? Current link is not working.
from ews-office365-contact-sync.
Thank you i will check. Else i will add it like an app in Azure.
Maybe its good to do that. Maybe you can write also that in your Readme how to add as azure App.
I think most People will use it. Its just an better and good alternative for Cirasync or Galsync.
Do you also do this aĆk schedule task every week?
from ews-office365-contact-sync.
Thank you i will install that also and let see if thats works.
It will realy be nice if it works in azure without EWS.
Like this option https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/
Do you think your script will work with gpah api?
from ews-office365-contact-sync.
I have now do the following steps:
Installed EWS 2.2 on my laptop
export my Exchange online admin credentials to an Cred file.
Created an bat file with following parrameters :
cd "%~dp0EWS-Office365-Contact-Sync"
PowerShell.exe -ExecutionPolicy Bypass ^
-File "C:\Users%username%\Desktop\EWS-Office365-Contact-Sync-master\EWSContactSync.ps1" ^
-CredentialPath "C:\Users%username%\Desktop\EWS-Office365-Contact-Sync-master\nldenic.cred" ^
-FolderName "TEST-Contacts" ^
-LogPath "%~dp0Logs" ^
-MailboxList [email protected] ^
-ExcludeSharedMailboxContact ^
-ExcludeContactsWithoutPhoneNumber ^
-ModernAuth ^
pause
Still gettings :
ERROR Failed to Sync-ContactList for [email protected] A constructor was not found. Cannot find an appropriate constructor for type Microsoft.Exchange.WebServices.Data.OAuthCredentials.
I have try to disable MFA for my Admin account and run it. But still not working for it.
AD Azure shows me this for my account :
Do you see other issue for this ?
from ews-office365-contact-sync.
@grahamr975
The problem looks solves for the normal method.
So i have delete -ModernAuth ^ and run my bat file again.
It is working. But does that means my admin account does not have mfa? Because it has mfa active đ
In the meantime i am still gettinng error for the Azure sollution.
It will be great if you can write the Azure sollution as option.
See also my other qustion #46
from ews-office365-contact-sync.
@nldenic if the script works without -ModernAuth, that means basic authentication is still enabled within your environment. In order for modern auth to work, you'll need to bypass MFA for the script by trusting the IP of the server you're running the script on. See Microsoft's guide below.
from ews-office365-contact-sync.
@nldenic if the script works without -ModernAuth, that means basic authentication is still enabled within your environment. In order for modern auth to work, you'll need to bypass MFA for the script by trusting the IP of the server you're running the script on. See Microsoft's guide below.
Thats correct. For now its working on my account with basicauth. Enabled.
For now this is ok but do you think its simple to make this work with azure api connection? For my its not working yet and get error message see other issue i mention the script there.
from ews-office365-contact-sync.
If you mean changing the script to not use EWS and only using Azure (Graph API), that would require a rewrite of the majority of the script. It's in the pipeline but not coming soon, since those changes will take time to develop and test.
from ews-office365-contact-sync.
For now its working on my on-premise server without the -ModernAuth because this is enabled. For now i am just working on it to let it work with modernauth and using certificate.
from ews-office365-contact-sync.
Related Issues (20)
- Exclude Specific Users from receiving the GAL sync HOT 1
- Sync Pager HOT 3
- Failed to load the Certificate (then failed to fetch GAL contacts) HOT 1
- Error (403) HOT 1
- Microsoft deprecate Azure AD, Azure AD-Preview, and MS Online PowerShell modules on March 30, 2024 HOT 2
- Impossible to configure as a scheduled task from Windows
- GAL Update
- Better details in docs HOT 1
- Howto specify more than one mailbox to sync from command line ? HOT 5
- Issue adding Fax and Pager fields to the contacts HOT 1
- EWSContactSync.ps1 : Cannot convert the "System.Management HOT 2
- Failed verify that Directory Contacts exists HOT 2
- Could not load file or assembly 'System.Net.Http, Version=4.2.0.0 HOT 4
- Scripts Exceptions in Catch and Get-GALContacts HOT 2
- Sync contacts to the default folder name. HOT 1
- Apply the script only user mailboxes HOT 3
- Identifying errors in the log HOT 1
- Cannot find an appropriate constructor for type Microsoft.Exchange.WebServices.Data.OAuthCredentials HOT 5
- Duplicate Contacts in Folder HOT 1
- Running script in Azure Automation Account HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ews-office365-contact-sync.