Adding Contacts with Department Field

Morning,

I work in a school which uses split delivery for our students and staff, the students are hosted externally.

What I would like to do is import the students into a address book so the staff can see their names. I have done this for around 50 of them by trial and error but I wondered if there is a Powershell command to do this. I currently use

Import-Csv c:\year13.csv|%{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -FirstName $_.FirstName -LastName $_.LastName}

Followed by

Get-Contact -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'MailContact')} | Set-MailContact -HiddenFromAddressListsEnabled $true

What I would prefer is the Import to

  • Hide the contact from the global address book
  • Add a field for Department so I can use the address book filtering to make one for each year at my school.

Can someone help please. The second command hide all contacts from the GAL so is a bit limited. I read somewhere that the 'hide from GAL' has been reinstated but I can't see it in the EAC.

February 9th, 2015 2:54am

Hi,

I'm pending research.

 

Thanks

Free Windows Admin Tool Kit Click here and download it now
February 10th, 2015 3:18am

Hi simcfc73,

I suggest use Address Book Policy to achieve this goal.

Please refer following article:

Scenario: Deploying address book policies

https://technet.microsoft.com/en-us/library/jj657455(v=exchg.150).aspx

Please notice "Scenario 3: Education" session.

 

Thanks

If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com 

February 13th, 2015 2:36am

As I said, the users I am wanting to make into separate address books are contacts not users so they don't have any way to distinguish them apart... which is why I asked about scripting to add the department tag.

Its very frustrating when you have to learn scripting for simple tasks like this instead of the good old days of it just working. Why is there no option to hide from the address book in the console???

Free Windows Admin Tool Kit Click here and download it now
February 13th, 2015 2:45am

Hi,

I'm totally understand your feeling, however I'm not good at script unfortunately.

The ABP is the best method which I known to manage the Address Book in such this situation, what a pity that it isn't helpful.

If you have a script requirement, I suggest ask Script Center for help so that we can get more professional suggestions. For your convenience:

https://technet.microsoft.com/en-us/scriptcenter/dd742246.aspx

 

Thanks

February 13th, 2015 2:58am

Hi,

Any update?

 

Thanks

Free Windows Admin Tool Kit Click here and download it now
February 16th, 2015 12:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics