Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 19214

New-MailConact | I don't have a display name, how can I have the script use the last,first name to generate one?

$
0
0

Import-Csv 'addr.csv' | ` ForEach{ New-MailContact $_.dname ` -DisplayName $_.dname ` -FirstName $_.fname ` -LastName $_.lname ` -organizationalunit "Users/Contacts" ` -Alias $_.alias ` -ExternalEmailAddress $_.email }

That would work; but I don't have a display name for the users in the CSV file.

Does anyone know how I'd combine the $._lanme with the $_.fname to create a display name of last,first?

Thanks!


Viewing all articles
Browse latest Browse all 19214

Trending Articles



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