Unused mailbox in exchange 2007 RRS feed

  • Question

  • Hi All,

    I am using exchange 2007 server in CCR . I need to track unused mailbox in exchange server. I am using symantec ent vault for archiving. All of my users will use domain id to login . most of the them wil not use mailbox . How to track unused mailbox using powershell.

    below PowerShell cmdlet that retrieves each user's most recent login information will provide me the required info ?

    $SearchAD = New-Object DirectoryServices.DirectorySearcher([adsi]"") $SearchAD.filter = "(objectclass=user)" $users = $SearchAD.findall() Foreach($user in $users) { if($"lastLogon") -ne 0) { $a = [datetime]::FromFileTime([int64]::Parse($"lastLogon"))) "$($`"name`")) $a" } }

    Thanks In advance.

    Monday, October 7, 2013 9:17 PM

All replies