EWS

Get High Priority Email Message as a Phone Call using EWS API and PowerShell

Posted on

A colleague shared a blog post and asked me a script to get high priority email using PowerShell? Well, it’s the same way ┬áby modifying the search filter as required as shown below. $SearchFilter = [Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo]::new([Microsoft.Exchange.WebServices.Data.EmailMessageSchema]::Importance, “High”) and the below is the view to get the number of email we need from the inbox – […]

EWS

Exploring LYNC Contacts Using PowerShell

Posted on

Exploring LYNC Contact folders using PowerShell. Get-MailboxFolderStatistics will display all the folders information in users mailbox. So using this we can explore LYNC Contacts with the folder type ‘Quick Contacts’. Get-MailboxFolderStatistics -Identity <MailboxID> | ? {$_.FolderType -eq ‘QuickContacts’} Lync Contact Folders with 0 Entries If we delete lync contacts programmatically it may appear as GUID […]

EWS

Delete Lync Contact Entries in Exchange Online Using PowerShell

Posted on

PowerShell code to remove LYNC Contacts entries in Exchange Online. Code #Target MailboxID’s $MailboxNames = “TargetMailBoxID1” , “TargetMailBoxID1” #Any Exchange Admin ID with appropriate permissions $AdminID = “AdminID” #Fetch password as secure string $AdminPwd = Read-Host “Enter Password” -AsSecureString #Load the Exchange Web Service DLL $dllpath = “C:\Microsoft.Exchange.WebServices.dll” [Reflection.Assembly]::LoadFile($dllpath) #Create a Exchange Web Service $Service […]