asked on
ASKER
The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.
TRUSTED BY
Get-ChildItem -Path $SearchPath |
Where-Object { $_.PSIsContainer } |
Select-Object -ExpandProperty FullName |
Out-File -FilePath $FolderFilePath
Get-Content -Path $FolderFilePath |
Get-ChildItem -Path { $_ } -Include *.mdb, *.accdb -Recurse -Force |
Select-Object -Property @(
,'Name'
,'FullName'
,@{ Name = 'Size(KB)' ; Expression = { $_.Length / 1kb } }
,@{ Name = 'Owner' ; Expression = { (Get-Acl -Path $_.FullName).Owner } }
,'LastWriteTime'
,@{ Name = 'Days since modified' ; Expression = { ((Get-Date) - $_.LastWriteTime).Days } }
,@{ Name = 'Age -days since created' ; Expression = { ((Get-Date) - $_.CreationTime).Days } }
) | Export-Csv -Path $ResultFilePath -NoTypeInformation