Comments (3)
@AisaacOcean If you have a list of your user's emails, you can manually pass those in a list to the -MailboxList parameter
from ews-office365-contact-sync.
Hi @AisaacOcean,
I tried passing a list to -MailboxList parameter, via this command (Get-Content -Path "file.txt") however is says vaule is empty.
If i run Get-Content -Path "file.txt" alone, it works and it has worked in you script before, can you perhaps tell me how to correctly pass the list?
from ews-office365-contact-sync.
I made a few changes to your powershell script that may be useful.
I had the same issue, couldn't figure out how to filter out shared mailboxes. After pouring through MS docs and your code, I found it will work if you make the following modification in Get-GALContacts.ps1:
Here is the modified script in a format that can be pasted:
$ContactList = Get-User -Filter "(RecipientTypeDetails -eq 'UserMailbox')" -ResultSize unlimited | Select-Object DisplayName,FirstName,LastName,Title,Office,WindowsEmailAddress,Phone
There are a bunch of filter parameters you can use. Here is a complete list from the Microsoft Documentation:
- DiscoveryMailbox
- DynamicDistributionGroup
- EquipmentMailbox
- GroupMailbox (Exchange 2013 or later and cloud)
- GuestMailUser (Exchange 2016 or later and cloud)
- LegacyMailbox
- LinkedMailbox
- LinkedRoomMailbox (Exchange 2013 or later and cloud)
- MailContact
- MailForestContact
- MailNonUniversalGroup
- MailUniversalDistributionGroup
- MailUniversalSecurityGroup
- MailUser
- PublicFolder
- PublicFolderMailbox (Exchange 2013 or later and cloud)
- RemoteEquipmentMailbox
- RemoteRoomMailbox
- RemoteSharedMailbox
- RemoteTeamMailbox (Exchange 2013 or later and cloud)
- RemoteUserMailbox
- RoomList
- RoomMailbox
- SchedulingMailbox (Exchange 2016 or later and cloud)
- SharedMailbox
- SharedWithMailUser (cloud only)
- TeamMailbox (Exchange 2013 or later and cloud)
- UserMailbox
Make sure you include the -ExcludeSharedMailboxContacts in your batch script.
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
- 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.