Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Need some direction here

$
0
0

Hi

I am wondering how could I achieve this idea:

I just finished cleaning items in deleted items folder older than 90 days.

now I want to know if the items left are older than lets say 100 days but like per database(otherwise report will be hell , a lot of mailboxes per mailbox database)

I can get the info per mailbox by running get-mailboxfolderstatistics -folderscope deleteditems -IncludeOldestAndNewestItems -IncludeAnalysis |?{$_.folderpath -eq "/deleted items"}

question is how to I report/record oldestitemrecieveddate ad newestitemrecieveddate

for example:

they should all be around 90 days and newer right(cause I purged 90 and older) but lets say if anything above 100 days record it or count how many of these.

Thanks

 


Viewing all articles
Browse latest Browse all 10624

Latest Images

Trending Articles



Latest Images