Interrogate Outlook GAL with PowerShell

Status
Not open for further replies.

marcadamcarter

New Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
I’ve been trying, without much success, to accomplish what appears to be a fairly simple task for rest of the world. My goal is to utilize PowerShell to interrogate the AddressLists collection within the Outlook.Application NameSpace object, returning a list of AddressEntries objects from my default or InitialAddressList. Whenever I attempt to execute the following PowerShell script the AddressEntries property for any of the AddressLists collections is always empty. However, others that I’ve spoken to are able to return account details about the entries located within those AddressLists.

$o = New-Object -ComObject Outlook.Application
$mapi = $o.Application.GetNamespace('MAPI')
$initAddrList = $mapi.AddressLists | ? { $_.IsInitialAddressList}
($initAddrList.AddressEntries).Count

The only caveat I can see that differentiates me from others I’ve talked to is the constraint of my employer's Outlook configuration for smart card authentication via RPC/HTTP protocol to a remote Exchange server.

I am able to successfully export contacts using Microsoft Access (as described in the following example) but missing attributes that are visible from within Outlook GAL that I was hoping to include in my data.

Share data between Access 2010 and Outlook 2010 - Office Support

I look forward to comments/thoughts.
-marc
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
M Outlook 2013 reminder email by using Outlook vba Outlook VBA and Custom Forms 2
H Outlook 2019 Certificate error Using Outlook 2
B Outlook 2013 erratically deleting original file that is attached Using Outlook 0
V Outlook Forms: Formatting a Label with 2 different styles Outlook VBA and Custom Forms 1
M Outlook 2016 Outlook randomly unhides from taskbar Using Outlook 9
X Using Outlook 2013 and Outlook 365 Using Outlook 1
V Date and/or time error in Outlook Form Outlook VBA and Custom Forms 0
D Sending email from Office 365 alias in Outlook Using Outlook 4
B Spam folder not showing in Outlook Using Outlook 5
ThinkToday Calculate reply time of outlook mail Using Outlook 1
M Microsoft 365 Outlook keeps requesting password on Local Account Using Outlook 1
I Outlook 365 - import/attach PST file that used POP3 Using Outlook.com accounts in Outlook 0
e_a_g_l_e_p_i I think it may be time to upgrade from Outlook 2010 Using Outlook 3
K Outlook 2016 Outlook, Chrome, and Clio Using Outlook 5
O Outlook tasks - Add text column with multiple lines Using Outlook 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
HarvMan Outlook 365 PST Report Using Outlook 1
V Upgraded Outlook Using Outlook 1
J Outlook 2010 Outlook/Win7 Client logging Event ID 36887 Using Outlook 0
R How to get the Items object of the default mailbox of a specific account in a multiple account Outlook? Outlook VBA and Custom Forms 0
T Why does outlook 2010 convert only some forum notifications to plain text? Using Outlook 2
M In Outlook Calendar remove the buttons: 'Today' and '<' (Back a day) and '>' (Forward a day) that are below the Ribbon and above the calendar display. Using Outlook 0
J Moved many emails to Outlook external folder, need to delete on Gmail server Using Outlook 13
P Scheduling a meeting in Outlook Outlook Wishlist 4
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
R Outlook 2019 Using Outlook 0
N Outlook Has Become Sluggish Using Outlook 14
HarvMan Outlook 365 Calendar Using Outlook 12
A calendar invites sent from Microsoft Outlook to Mac Outlook is not working Calendar Printing Assistant 3
L Outlook 2016 Contacts missing in Outlook 365 Using Outlook 1
R seperate read layout to design in outlook 2016..Help!! Outlook VBA and Custom Forms 3
A Outlook replies not using "delivered to" address in From Using Outlook 1
GregS Why is Outlook 2016 mail in Outlook.com? Using Outlook 1
G Recurring tasks break links Outlook 2016 Using Outlook 5
L Outlook saved email templates Using Outlook 1
P Outlook for Mac - emails are not sent out beginning last week Using Outlook 1
V Gmail in Outlook Using Outlook 2
D Outlook VBA error extracting property data from GetRules collection Outlook VBA and Custom Forms 10
S Verwendung von Outlook 2007 Using Outlook 0
T "Words In Recipient's Address" Rule Causes Outlook To Stop Processing Rules Using Outlook 3
J Outlook 2013 Change color of text in data fields of contacts in Outlook 2013? Using Outlook 3
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
Y Outlook 2013 Stop Outlook from automatically assigning categories to Tasks Using Outlook 0
A How to get body of all emails in outlook 2016 to view in blue color Using Outlook 1
J Edit auto-complete list in Outlook 2016+/365? Using Outlook 0
O Export Outlook calendar appointments by filters and date range Outlook VBA and Custom Forms 1
S Outlook not receiving mail Using Outlook 2
GregS Outlook 365 blocked by Google popup Using Outlook 2
T upgrade from outlook.com to Outlook Using Outlook 2
R Outlook Autoforward rule do not work for NDR messages Using Outlook 1
Similar threads


















































Top