Skip to content

Instantly share code, notes, and snippets.

View IslamAlam's full-sized avatar
🎯
Focusing

Islam Mansour IslamAlam

🎯
Focusing
  • ETH Zürich – Microwaves and Radar Institute - German Aerospace Center (DLR)
  • Munich, Germany
View GitHub Profile
@constructor-igor
constructor-igor / powershell-list-of-all-entries-from-Outlook-GAL
Last active January 12, 2022 23:32
Powershell: list of all entries from Outlook Global Address List (GAL)
[Microsoft.Office.Interop.Outlook.Application] $outlook = New-Object -ComObject Outlook.Application
$entries = $outlook.Session.GetGlobalAddressList().AddressEntries
$count = $entries.Count
$count
foreach($entry in $entries)
{
[console]::WriteLine("{0}: {1}", $entry.Name, $entry.GetExchangeUser().MobileTelephoneNumber)
}