I’m running into an issue which is driving me crazy on an old server with PS 2.0 . I need to extract a lot of info about mailboxes for a friend named Mark (hence the terrible cmdlett name). Well, this 2.0 server is driving me crazy, mostly because I’ve forgotten how to make custom objects back in 2.0. It seems no matter what I do, I end up with a hashtable and not NoteProperties, and then my export gets all hosed.
(blockquote)$Array = New-Object -TypeName System.Collections.ArrayList
Function Get-MarkInfo {
ForEach ($user in $users){
$mbx = Get-Mailbox $user
$mbxstat = Get-MailboxStatistics $user
Thank you guys, it was a blast from the past, using this approach to solve this problem.
Thanks Mike, we ended up using a very similar solution here. I’ll definitely blog about this one, to help any future PowerSheller’s also having to delve into old systems.