Add external contacts to Office 365 - Add external contacts to O365
With Powershell ISE
$UserCredential = Get-Credential
Set-executionpolicy unrestricted
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Import-Csv pathfilename.csv|%{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress}
Example:
Import-Csv C:\temp1\userlist.csv|%{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress}
userlist.csv (has 2 columns)
Name ExternalEmailAddress
http://incoreporation.com https://ca.incoreporation.com http://wwebservices.ca
Subscribe to:
Post Comments (Atom)
Featured Posts
Exchange Online Limits - Office 365 Distribution group limits
Exchange Online Limits - Office 365 Distribution group limits What are Exchange Online Limits What are Office 365 Distribution group limi...
-
Someone is asking how to enable users to post articles on your website. One common solution is to use a Wordpress plugin to allow users to p...
-
Building a local Steam caching server to ease the bandwidth blues As Reference article : https://arstechnica.com/gaming/2017/01/building...
No comments:
Post a Comment