suriyaehnop
asked on
Export EmailAddresses
I have a list of user and would like to have their email addresses in following CSV format.
Displayname,EmailAddresses 1,EmailAdd ress2..... .....
It similiar to:
http://blogs.technet.com/b/heyscriptingguy/archive/2013/07/22/export-user-names-and-proxy-addresses-to-csv-file.aspx
I been tried to figure out but so far failed. What i got:
Displayname,EmailAddresses
It similiar to:
http://blogs.technet.com/b/heyscriptingguy/archive/2013/07/22/export-user-names-and-proxy-addresses-to-csv-file.aspx
I been tried to figure out but so far failed. What i got:
$Names = 'user1','user2'
Foreach ($u in $Names){
$email= (Get-Mailbox -Identity $u).emailaddresses | Select -ExpandProperty smtpaddress
#For ($i=0;$i -le $name.count;$i++){
$email = @{}
}#}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER