How to Identify Local-Only Files on Windows
- Difficulty
- Intermediate
- Tested on
- Windows 11 Build 22631
- You will need
- Windows 11, Administrative access
Step by step
Enable the File Status column in File Explorer
Open File Explorer and navigate to your OneDrive folder. Right-click the header row of the file list and select More from the context menu. Check the box for Status and click OK to reveal the synchronization state of your files.
Note: The Status column displays a green checkmark for local-only files.Group files by synchronization status
Right-click any empty space in the file header. Select Group by and then choose Status. This action will visually isolate files labeled as Available on this device from those marked as Available when online.
Use PowerShell to locate non-cloud files
Press Win + X and select Terminal (Admin). Run the command Get-ChildItem -Path 'C:\Users\YourUsername\OneDrive' -Recurse | Where-Object { $_.Attributes -notmatch 'ReparsePoint' } to list items that are physically stored on your drive.
Note: ReparsePoint identifies items managed by cloud sync engines.Filter by file attribute bitmasks
To identify specifically pinned files, use the command Get-ChildItem -Recurse | Where-Object { ($_.Attributes -band [System.IO.FileAttributes]::Offline) -eq 0 }. This filters out files marked as offline-only, leaving only those present locally.
Check individual file properties
Right-click any file and select Properties. Look at the Attributes field in the General tab. If the file is local-only, it will not display the 'Offline' attribute typically assigned to cloud-only placeholders.
Note: Select the file before pressing the shortcut.