![]() ![]() New-MailContact -Name $Name -DisplayName $DisplayName -ExternalEmailAddress $ExternalEmailAddress -FirstName $FirstName -LastName $LastName ![]() $ExternalEmailAddress =$Contact.ExternalEmailAddress $StateorProvince =$Contact.StateorProvince #For each contact foreach ( $Contact in $Contacts ) $CSVFileName = "Contacts_Export.csv" #Create the CSV file New-Item $CSVFileName - type file -force #Write the first line into the CSV file Add-Content $CSVFileName "DisplayName,Name,ExternalEmailAddress,FirstName,LastName,StreetAddress,City,StateorProvince,PostalCode,Phone,MobilePhone,Pager,HomePhone,Company,Title,OtherTelephone,Department,Fax,Initials,Notes,Office,Manager" #Get Contact from Exchange $Contacts = Get -Contact ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |