Exchange Bulk Export / Import Mail Contacts

KB ID 0001349 

Problem

I had to do this today and realised, it’s been so long since I did it last, I’d forgotten how to do it. Before we go forward, please be clear, I’m talking about MAIL CONTACTS, these are Active Directory Objects that have an Email address, but DO NOT have a mailbox in your Exchange Organisation, and DO NOT have an Active Directory User. I point this out because you can have MAIL USERS that have an Active Directory User Object and have an External Email address (i.e. a Gmail or Hotmail address) associated with the MAIL USER object.

Traditionally mail contacts are used for listing outside mail addresses in your global address list, (like mail users do) but are also used to forward mail to as well.

Solution

I was exporting from Exchange 2010, from the EMC run the following command;

[box]Get-MailContact -ResultSize unlimited | Select DisplayName,Name,PrimarySMTPAddress | Export-Csv “c:\Contacts-Exported.csv“[/box]

And there’s my file.

You can see my exported CSV list in, DisplayName, Name, PrimarySmtpAddress format. You will need to do some work with it in Excel to get it in > Name, Firstname, Lastname, ExternalEmailAddress format.

Once you have you CSV file ready, import it into the Target Exchange Server with the following command;

[box]Import-Csv “C:\Contacts-Exported.csv” | ForEach {New-MailContact -Name $_.Name -Firstname $_.FirstName -LastName $_.LastName -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit “OU=IMPORT,DC=PNL,DC=COM”}[/box]

There’s my new contacts 🙂

Related Articles, References, Credits, or External Links

NA

Outlook – The {name} Column is Missing from my Inbox

KB ID 0000198 

Problem

I don’t know why, but the From column disappeared from the Outlook (2007) Inbox this morning.

Should this happen to you, and you need to restore (or add/remove) a column to/from your inbox.

Solution

1. Within Outlook > Click View > Current View > Customize Current View.

2. Click Fields > Select From (Or the one you are missing/want). > Add > You can then move it up and down the list. > OK >OK.

3. You column should be restored.

 

Related Articles, References, Credits, or External Links

NA

 

Excel – Creating a Dropdown Box ‘From data on another sheet’

KB ID 0000711 

Problem

My wife asked me how to do this today. I don’t use Excel much, most people think because I work in IT I know everything about all software packages, and they are surprised when I’m asked questions like this, and I say ‘I don’t know I’m a network engineer’.

But seeing as it was for the better half, I fired up Excel and worked it out. (This must be worth at least a cup of Tea!)

Solution

Step 1 – Create the source Data

1. Select the sheet that you want to populate the drop down list from, or create a new one and call it something sensible.

2. Type all your values into a column.

3. Select the column (you can select the cells but then if you add any new data it wont be added to the drop down).

4. In the ‘Name’ Section give the range a name i.e. garment, then press Enter.

Step 2 – Create the Drop Down List

1. Select the sheet that you want the drop down box to appear on.

2. Select the Cell where you want the drop down.

3. On the ‘ribbon’ select data.

4. Data Validation.

5. Settings tab.

6. Change allow to ‘list’.

7. Set Source to ‘={the range name you used above}’ OK.

8. The drop down (list box) will be created.

Related Articles, References, Credits, or External Links

Excel: Calculate Cost, Margin, Sell Price

Excel – IP Address Formula for ‘Auto fill’