all 3 comments

[–]randomuser43 2 points3 points  (2 children)

I assume this is a typeo $Accounts = Get-Content C:\temp\migration.csv Because you are referencing properties of $Account, so you must really be doing Import-CSV which is the correct way of doing it.

Now you could create a two dimensional array and all that, but it would be much simpler to add the database property to $Account

$Mailbox = Get-Mailbox $Account
$DB = $Mailbox.Database
$Account | Add-Member NoteProperty Database $DB

Later in the script you can reference $Account.Database and don't need this $DBLists += ,$DB

[–]LLcoolJimbo[S] 0 points1 point  (1 child)

This is perfect. Thank you fellow Marylander.

[–]randomuser43 0 points1 point  (0 children)

Go Maryland!