Run "robocopy /?". Minage references files, not folders.
/MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
With Powershell, we can look at the directories and analyze the dates. The main question is how you want to handle subfolders. If you want to process the folders all at the same level, then there should not be a issue with using the /MOV switch.
\source\share\folder1
\source\share\folder2
\source\share\folder3
$TargetDate = get-date "August 31, 2021"
$Source = "c:\temp"
$Dest = "Z:\Temp"
Get-ChildItem -Path $Source -Directory | Where-Object -Property LastWriteTime -lt $TargetDate | foreach {
$RcDest = $Dest + $_.FullName.Substring($Source.Length)
Write-Host "robocopy $($_.fullname) $RcDest /mov /e /l" # just display the robocopy command to execute
# Uncomment the next line and fix switches to actually execute robocopy
#robocopy.exe $($_.fullname) $RcDest /mov /e /l
}
But if you want to move some subfolders but not others, then you will need to test thoroughly to verify that the files and folders get processed correctly.
\source\share\folder1\folder2\folder3\folder4
So if you wanted to move the files in folder2 and 4 but not 1 and 3, then you would need to use the -recurse switch on Get-childitem and you could not use /e with robocopy.