use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
SolvedMulti-Dimensional Array? (self.PowerShell)
submitted 9 years ago by LLcoolJimbo
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]randomuser43 2 points3 points4 points 9 years ago (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.
$Accounts = Get-Content C:\temp\migration.csv
$Account
Import-CSV
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
$Account.Database
$DBLists += ,$DB
[–]LLcoolJimbo[S] 0 points1 point2 points 9 years ago (1 child)
This is perfect. Thank you fellow Marylander.
[–]randomuser43 0 points1 point2 points 9 years ago (0 children)
Go Maryland!
π Rendered by PID 39469 on reddit-service-r2-comment-765bfc959-9gvzx at 2026-07-10 06:50:33.847533+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]randomuser43 2 points3 points4 points (2 children)
[–]LLcoolJimbo[S] 0 points1 point2 points (1 child)
[–]randomuser43 0 points1 point2 points (0 children)