CSV Report of all offline files with PowerShell
I was recently asked to scan a volume to check for any offline files to confirm that a bulk restore was successful. I created this gui-user-friendly powershell script to perform that function. It prompts for a directory to (recursively) check for offline files and any offline files are reported in a CSV file called "Offlinefiles.csv"
If you just want to run the query yourself, this is it: Get-ChildItem $fldr -recurse | Where-Object {$_.Attributes -eq 'offline'} | Export-Csv "$csvfldr\OfflineFiles.csv"
Where:
$fldr = The top level folder you want to scan.
$csvfldr = The folder in which to place the csv.
Published 14 years ago
Version 1.0