Summary: Use Windows PowerShell to list contacts in Microsoft Outlook.
How can I use Windows PowerShell to programmatically connect to Outlook to get the Contacts list?
Connect by using ComObject, and select the objects you need:
$Outlook=NEW-OBJECT –comobject Outlook.Application
$Contacts=$Outlook.session.GetDefaultFolder(10).items
$Contacts | Format-Table FullName,MobileTelephoneNumber,Email1Address
0 comments