Microsoft 365 Copilot & SharePoint Pre-Migration Audit
Before migrating an on-premises Windows file server or NAS into SharePoint Online for a Microsoft 365 Copilot rollout, IT teams can audit five issues locally: large files, legacy Office formats (.doc, .xls, .ppt), Outlook .pst archives and .ost caches, OS clutter (Thumbs.db, temporary Office lock files), and local path compatibility. Reviewing them is useful before testing SharePoint Migration Tool (SPMT), OneDrive sync and the specific Copilot features you plan to use.
Most migration checklists only look at whether a file can upload to SharePoint. Upload success is a low bar. A file share can upload successfully and still contain legacy documents that need testing, paths that desktop apps cannot open, and .pst archives that have yet to be imported into mailboxes.
Quick audit table: Five pre-migration blockers and what they break
| Archive Blocker | Concrete Threshold / Pattern | What breaks in SharePoint / OneDrive / Copilot | Recommended Pre-Migration Action |
|---|---|---|---|
| Oversized Documents | PathReady advisory thresholds at 150 MiB, 200 MiB, and 512 MiB | Microsoft applies different size limits to different Copilot features | Flag and separate media/CAD/archive blobs from active knowledge libraries |
| Legacy Office Formats | .doc, .xls, .ppt (Office 97–2003 binary) | Support varies by Copilot task and Office browser feature | Inventory and batch-convert active reference docs before upload |
| Outlook Mail Archives | .pst, .ost | SPMT does not ingest .pst into Exchange Online mailboxes. .ost files are Outlook caches. | Quarantine .pst files and route them via Microsoft Purview Network Upload |
| Local path compatibility | 400 decoded characters in the cloud, optional 260-character Windows compatibility check | A synced item can still exceed a desktop app’s path limit | Budget for C:\Users\<Name>\OneDrive - Company Name\ prefix and shorten parent folders first |
| OS & Temp Clutter | ~$*, desktop.ini, Thumbs.db, .DS_Store, *.tmp | Some names are blocked or skipped. Others add files that don’t belong in the handoff. | Exclude systematically before staging the final upload copy |
Why files pass SharePoint's 400-character limit and still break OneDrive
On paper, Microsoft's OneDrive and SharePoint restrictions allow up to 400 characters for the decoded server-relative path (Site + Document Library + Folders + File Name). A separate issue is whether local apps can open the synced path. The full local path includes the sync root. Apps that haven’t opted in to longer paths may still encounter Win32’s 260-character MAX_PATH limit. Microsoft documents separate limits for the sync client itself.
Do the local prefix math before you approve a SharePoint site name:
C:\Users\Alexandra.Henderson\OneDrive - Contoso Advisory Group LLC\Client Deliverables - Documents\
That local root prefix alone consumes 99 characters, including the final backslash. Add a 60-character client folder name, one separator and a 110-character nested deliverable path, and the local path is 270 characters. The cloud item can be within its own budget while a Windows app that still uses MAX_PATH fails to open it.
Spaces and special characters compound the problem in SharePoint URLs (for example, each space expands to %20 in encoded URLs, while # and % may depend on the organization’s configuration). For exact formula details, read our breakdown on calculating SharePoint's 400-character path limit before renaming.
Why Copilot readiness starts on the file server, not inside M365
Teams rolling out Microsoft 365 Copilot often migrate first and promise to "clean up SharePoint later." Once terabytes of uncurated file shares land inside SharePoint Online, three checks are worth making before cutover:
- Copilot file-size ceilings: Per Microsoft Copilot Studio knowledge upload limits, individual file uploads as Copilot Studio knowledge sources cap at 512 MB. Copilot in OneDrive documents a separate file-size limit of under 150 MB. PathReady’s 150/200/512 MiB findings are triage thresholds. Check the requirements for the exact feature you’ll deploy.
- Legacy
.doc,.xls, and.pptdead weight: Microsoft 365 Copilot’s supported formats vary by task. Check which legacy files are in active use and whether your intended task supports them. Identifying where legacy formats still live lets you convert active playbooks and archive obsolete 2009 drafts elsewhere. .pstarchives sitting in user folders: The SharePoint Migration Tool (SPMT) migrates document libraries and file shares—it does not import Outlook.pstfiles into Exchange Online mailboxes. Putting a.pstin a document library stores it as a file. For mailbox import, use a supported workflow such as Microsoft Purview PST Network Upload via AzCopy.
Free read-only PowerShell pre-audit script (and what it misses)
You can run this discovery scan in PowerShell 7 against a Windows share you can read. It writes a new report to your temporary folder and leaves the source unchanged. Review the CSV locally because it contains filenames. Start against a test share (\\FILESERVER\Projects or D:\ClientArchive):
$Root = (Get-Item -LiteralPath "D:\ClientArchive" -ErrorAction Stop).FullName
$OutCsv = Join-Path $env:TEMP "pre-migration-audit-$([guid]::NewGuid()).csv"
$LegacyExt = @(".doc", ".xls", ".ppt")
$InvalidChars = '["*:<>?/\\|]'
$ScanErrors = @()
$Results = @(Get-ChildItem -LiteralPath $Root -Recurse -File -Force -ErrorAction SilentlyContinue -ErrorVariable +ScanErrors | ForEach-Object {
$Flags = @()
$RelPath = [IO.Path]::GetRelativePath($Root, $_.FullName)
$SizeMiB = [math]::Round($_.Length / 1MB, 2)
if ($RelPath.Length -gt 220) { $Flags += "LongRelPath($($RelPath.Length))" }
if ($_.Name -match $InvalidChars -or $_.Name -match '^\s|\s$|\.$') { $Flags += "ReviewName" }
if ($_.Extension -in $LegacyExt) { $Flags += "LegacyOffice" }
if ($_.Extension -eq ".pst") { $Flags += "OutlookArchive" }
if ($_.Extension -eq ".ost") { $Flags += "OutlookCache" }
if ($_.Length -gt 150MB) { $Flags += "LargeFile" }
if ($_.Name -like '~$*' -or $_.Name -in @("Thumbs.db", "desktop.ini", ".DS_Store")) { $Flags += "OSClutter" }
if ($Flags.Count -gt 0) {
# Keep names that resemble spreadsheet formulas as text in the report.
$CsvPath = $RelPath -replace '^(\s*[=+\-@])', '''$1'
[PSCustomObject]@{
Flags = ($Flags -join "; ")
SizeMiB = $SizeMiB
RelLen = $RelPath.Length
RelativePath = $CsvPath
}
}
})
if ($Results.Count) {
$Results | Export-Csv -LiteralPath $OutCsv -NoTypeInformation -Encoding utf8BOM
Write-Host "Flagged $($Results.Count) items. Report: $OutCsv"
} else {
Write-Host "No items flagged among files that could be read."
}
if ($ScanErrors.Count) {
Write-Warning "The scan encountered $($ScanErrors.Count) read errors. Check source access before relying on this report."
}
Where a raw PowerShell script hits its limit
This script can help scope an audit with a client. Its 220-character relative-path check is a screening heuristic, and its 150 MiB flag uses binary megabytes. It misses issues that depend on the destination or files it could not read:
- It cannot simulate destination SharePoint URLs: Changing the target library name changes which files fail—you want to compare shorter destination paths against a saved scan before renaming anything.
- It does not group parent-folder repairs: Renaming one 95-character parent directory often fixes 400 nested files at once; flattening individual filenames ruins readability.
- It produces no verified staged copy or path map: This report leaves the source alone and does not provide an
old-path -> new-pathmap or verify a copy.
Offline preparation with PathReady (v1.1.0) — zero tenant access required
For MSPs, IT consultants, and internal admins who cannot—or will not—grant a third-party SaaS migration vendor Sites.FullControl.All permissions just to audit a messy file share, PathReady (v1.1.0 for Windows 11 x64) scans and stages files without signing into the tenant. EnlightPixel makes PathReady.
- PathReady Free (USD 0): Run read-only local and network scans (up to the inventory limit) with full SharePoint/OneDrive path checks, Unicode audits, parent-folder rename planning, and the Copilot & Migration Readiness audit covering files over
150,200, or512 MiB, Outlook.pstarchives, legacy.doc/.xls/.pptformats, and OS clutter. Export advisory findings straight tospmt-audit.csv, plus run evaluation copies up to100files /100 MiB(portable ZIP and verification details for sandbox testing). - PathReady Pro (USD 49 one-time): Removes Free copy limits for local NTFS staging, adds resumable jobs from a saved ledger, independent SHA-256 verification rechecks,
handoff.html, UTF-8path-map.csv, andspmt-audit.csv. - PathReady Commercial (USD 149 one-time): Adds NAS, UNC, and mapped-drive staging export, custom company/project/logo branding in
handoff.html, and reusable client rename profiles.
Honest boundaries of PathReady
PathReady prepares a clean, verified copy before upload day—it does not replace Microsoft's migration transport layer:
- It does not sign into Microsoft 365 tenants or upload files (feed the prepared
files/folder into SPMT, SharePoint Migration Manager, or ShareGate). - It does not migrate NTFS ACLs or SharePoint permissions.
- It does not rewrite internal hyperlinks inside Excel workbooks or Word documents after a folder rename.
To see how PathReady fits alongside Microsoft's own tools, read PathReady vs. SPMT vs. Bulk Rename Utility or review the full PathReady vs. alternatives comparison.
Frequently asked questions
Does the SharePoint Migration Tool (SPMT) migrate Outlook .pst files?
SPMT does not import .pst files into Exchange Online mailboxes. It migrates supported SharePoint or file-share content to Microsoft 365. Use a supported mailbox import workflow for mail data.
Why did a file upload to SharePoint Online fine but fail OneDrive sync on Windows 11?
SharePoint Online permits up to 400 characters for the decoded server-relative path, while a desktop app may enforce a shorter local path once the sync root (C:\Users\<Name>\OneDrive - Company Name\) is included. Check OneDrive’s own sync limits and the desktop app’s compatibility.
Do legacy .doc, .xls, and .ppt files work well with Microsoft 365 Copilot?
Support varies by Copilot feature and task. Check Microsoft’s supported formats, then test representative active .doc, .xls and .ppt files. Convert necessary copies to .docx, .xlsx or .pptx and confirm their contents before moving them.
Can I audit a client file server for SharePoint and Copilot readiness without tenant credentials?
Yes, with read access to the source. Both the PowerShell script and PathReady Free run without Microsoft 365 tenant credentials. The script exports a preliminary local CSV. PathReady exports its advisory findings as spmt-audit.csv.
Related articles
Fix “Path Too Long” and Invalid Names Before a SharePoint Migration
Find the cause of long paths and invalid file names before a SharePoint or OneDrive migration, then verify a separate copy without renaming the originals.
Read File handoffsHow to Calculate SharePoint and OneDrive Path Length
Measure the full decoded destination path, work through a 410-character example, and check what the same file would use on a synced Windows desktop.
Read ComparisonsPathReady vs. SharePoint Migration Tool and Bulk Rename Utility
Choose between PathReady, SPMT and Bulk Rename Utility for SharePoint preparation, batch renaming, verified handoffs and migration into Microsoft 365.
Read