Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

PowerShell - Import-Csv more objects

$
0
0

Hello,

I use this command for import a CSV:

import-csv c:\import3.csv -Delimiter ';' | foreach { new-mailcontact -alias $_.Alias -name $_.DisplayName -ExternalEmailAddress $_.EmailAddress -OrganizationalUnit “domaine.com/architecture/utilisateurs/Contacts”}

My CSV like that:

Name;DisplayName;EmailAddress;Alias

All is OK

Now i want import more informations for the contacts but i don't find the solution.

1) Where can i find all the objects possible to add in a contact list ?

2) I try that just for add the phone number but i have an invalidArgument

import-csv c:\import3.csv -Delimiter ';' | foreach { new-mailcontact -alias $_.Alias -name $_.DisplayName -ExternalEmailAddress $_.EmailAddress-Phone $_.Phone -OrganizationalUnit “domaine.com/architecture/utilisateurs/Contacts”}

In my CSV:

Name;DisplayName;EmailAddress;Alias;Phone


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>