Find Modified Files In a Folder (By Age and Date)

Find Modified Files In a Folder KB ID 0001812

Problem

You need to find a modified file in a folder, there are a few ways to do this, the best options are via PowerShell, but you can also use the search function in Normal Windows Explorer.

Solution Find Modified Files In a Folder: Graphically

Strangely the option you want you cannot see unless you click into the search field, once you do that Search will be visible on the menu ribbon.

Seelct Date Modified, then choose an option.

Solution Find Modified Files In a Folder: PowerShell

Any ‘mundane’ task is always done better with a bit of scripting!

Find Modified Files in a Folder (In the last month)

Use the following syntax,

[box]

$timerange (Get-Date).AddMonths(-1)
Get-Children C:\FOLDER-NAME -File | Where-Object {$_.LastWriteTime -ge $timerange}

[/box]

Note: you can use something like .AddDays(-30)  also if you prefer.

Find Modified Files in a Folder and all sub-folders (In the last month)

Use the following syntax,

[box]

$timerange (Get-Date).AddMonths(-1)
Get-Children C:\FOLDER-NAME -File -Recurse | Where-Object {$_.LastWriteTime -ge $timerange}

[/box]

Find Modified Files in a Folder and all sub-folders (and output to CSV)

To take that output and put it into a CSV file use the following synatax.

[box]

$timerange (Get-Date).AddMonths(-1)
Get-ChildItem E:\Dropbox -File -Recurse | Where-Object {$_.LastWriteTime -ge $timerange} | Select-Object -Property Name, BaseName, Extension, FullName, DirectoryName, LastWriteTime, Length | Export-Csv -NoTypeInformation -Path C:\Temp\MODIFIED-FILES.csv

[/box]

Find Modified Files in a Folder and all sub-folders (Between Certain Dates)

Use the following syntax

[box]

Get-ChildItem E:\Dropbox -File -Recurse | Where-Object {($_.LastWriteTime -ge '2022-01-01') -and ($_.LastWriteTime -le '2022-12-31')} | Select-Object FullName, LastWriteTime

[/box]

Note: Unfortunately you have to format the dates in YYYY-MM-DD format.

Related Articles, References, Credits, or External Links

NA

Exchange 2000 / 2003 – Exporting Mail to .pst files with ExMerge

KB ID 0000091

Problem

ExMerge has been around for a long time, its used (as the name implies) to merge pst files into existing mailbox’s. However its also a great tool to export/backup users mail box’s if you’re doing a migration, or if you have got your “Disaster Recovery” hat on.

The following is a run through of how to export from a mail store to pst files – Note on a live system this can take some time, the example below was done in VMware on a test Exchange box that had 1000 users (as it was a test server the mailbox’s were tiny) If you need to do this on a production server plan in a LOT of time if your moving a large amount of data.

Solution

 

Note: I’ve mentioned it in the video, but just to reiterate, your mailbox’s need to be smaller than 2GB, if that can not be achieved, you can either;

1. Use ExMerge and export particular “date ranges” and produce multiple .pst files for the same mailbox (hopefully less than 2GB).

2. Use Outlook 2007 (or greater) to export the mailbox to .pst files individually.

Related Articles, References, Credits, or External Links

Download ExMerge 

Exchange 2010 Bulk Import .pst Files

Exchange 2007 – Export Mailbox’s to PST files