Hello,
I am using powershell in Exchange 2010 and I am able to create multiple email address with the below code. However, the only thing I'm not able to do is populate the 'Description' field within Active Directory. Does someone know how I can do this?
$password = (Get-Credential).PasswordImport-Csv c:\TLusers.csv | ForEach-Object {
New-Mailbox -Name $_.Name `
-FirstName $_.FirstName `
-LastName $_.LastName `
-UserPrincipalName $_.UserPrincipalName `
-Password $password `
-OrganizationalUnit $_.OU `
-Database "RS_EXDB1" `
| Set-User -Company $_.Company -Office $_.Office}
Thank you.