Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tend to store a lot of information in the Notes fields of Outlook contacts.

Accessing this detailed info for a specific contact in Outlook 2013 requires many steps on the Windows desktop:

  • opening Outlook
  • switching to Contacts view
  • searching for the contact by name
  • opening the contact's unified "People view"
  • opening the full Outlook Contact card

As a power-user, I'd like to instead use some script:

Win-R oc John Smith

where Win-R is the shortcut to open a Run... window, and oc would be some type of script (PowerShell, VBA, Perl, ?) to directly open the detailed Outlook contact card for the given name.

Would there be any way to achieve this? Specific code would be great.

(Please note that unfortunately Outlook 2013 no longer makes its content accessible to Windows Search.)

Thanks.

share|improve this question
1  
What have you tried already? Where are you getting stuck? –  Ƭᴇcʜιᴇ007 May 28 '13 at 17:06

2 Answers 2

Powershell example to get you started:

$outlook = new-object -com Outlook.Application
$contactFolder = $outlook.session.GetDefaultFolder(10)
$contacts = $contacts.Items
$firstContact = $contacts.GetFirst()
$contact.FirstName
$contact.Email1Address

It creates a COM connection to Outlook (must be installed),
then looks up the Contacts folder (#10),
then gets all the contact Items from the folder,
then Gets the first Contact item
and finally displays that contact's First Name and primary Email Address.

More info:

share|improve this answer
    
I second this method. Powershell is king. –  MDT Guy May 28 '13 at 19:30
    
Thanks for the good pointers. I was hoping to be able to open the window with the Outlook Contact (to allow copying, editing, etc). Can you think of any way to do this programmatically? –  Hugues May 29 '13 at 2:26
    
Thanks for the example! I was looking for a way to update my local address book entries via Powershell and this got me started. It helps that there's a $contact.Save() method, too. Thanks! –  SpikeX Sep 23 '13 at 14:31

Windows Desktop Search 4.0:

Windows Desctop Search 4.0

Command line, if need:

WindowsSearch /url search-ms:query=(jaiPhone)kind:contacts

Learn How to Use Windows 7′s Advanced Search Operators

Mastering Windows Search using Advanced Query Syntax

Advanced Query Syntax

Top 7 Windows Search Tricks Used by Pro Users

Windows Search with Windows 7 and Outlook 2007

share|improve this answer
    
Thanks for the suggestion -- I was using something like this previously with Outlook 2010. However, Outlook 2013 does not register its content in the Windows Search index. See google.com/search?q=outlook+2013+windows+search . –  Hugues May 29 '13 at 2:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.