I have a csv setup to add users to a test domain but don't know how to populate the otherMailbox attribute
$secpass = Read-Host "Password" -AsSecureString
Import-Csv SVCAccounts.csv |
foreach {
$name = "$($_.DisplayName)"
New-ADUser -Name $name -DisplayName $($_.DisplayName) `
-SamAccountName $($_.SamAccountName) `
-Department $($_.Department) `
-Description $($_.Description) `
-EmailAddress $($_.mail) `
-???? @{otherMailbox=$_.OtherMailbox}`
-AccountPassword $secpass -Path "OU=_Test,OU=ServiceAccts,OU=UserAccts,DC=corp,DC=com" `
-Enabled:$true
}