OneDrive Admin Checklist: file server migration breaks recent links for department moves
🔍 WiseChecker

OneDrive Admin Checklist: file server migration breaks recent links for department moves

When a department moves from one file server to another, users often lose access to recently shared OneDrive links that pointed to files on the old server. This happens because the migration changes the file path, and OneDrive cannot automatically update the link. This article explains why file server migrations break recent OneDrive links, provides a step-by-step checklist to prevent and fix the problem, and covers related issues like broken shortcuts and missing sync status.

Key Takeaways: Preventing Broken Links During File Server Migration

  • OneDrive admin center > Sync > Known Folder Move: Redirects known folders (Desktop, Documents, Pictures) to OneDrive before migration to avoid path changes.
  • SharePoint admin center > Sharing > Link expiration: Set a default link expiration policy so old links expire before migration starts.
  • OneDrive admin center > Storage > File restore: Enable file restore for users to recover files if migration causes accidental deletions or path mismatches.

ADVERTISEMENT

Why File Server Migration Breaks Recent OneDrive Links

OneDrive creates links based on the file’s current storage location. When a file is on a local file server, the link points to that server path. After migration, the file moves to a new server path or to OneDrive cloud storage. The original link still points to the old path, which no longer exists. OneDrive does not automatically redirect these links to the new location.

The core issue is that OneDrive treats file server links as absolute paths. Unlike SharePoint or OneDrive cloud links, which use a unique file ID that stays the same after a move, file server links rely on the UNC path. Once the path changes, the link breaks.

Another factor is that users often rely on the “Recent” list in OneDrive to access shared files. If the file was shared via a file server link and then migrated, the Recent entry still shows the old link. Clicking it produces a “File not found” error.

Link Types Affected by Migration

There are two types of links that break during a file server migration:

File server UNC links. These are direct paths like \\oldserver\share\file.docx. After migration, the server name or share path changes, making the link invalid.

OneDrive shared links referencing local files. When a user shares a file from a synced folder that is mapped to a file server, OneDrive creates a link that includes the local path. After migration, the local path no longer exists, so the link fails.

Admin Checklist: Prevent and Fix Broken Links During Migration

Follow these steps in order before, during, and after the migration to minimize broken links.

Before Migration: Prepare OneDrive and SharePoint

  1. Enable Known Folder Move for all affected users
    Go to the Microsoft 365 admin center > OneDrive admin center > Sync > Known Folder Move. Turn on the policy to redirect Desktop, Documents, and Pictures to OneDrive. This ensures files in these folders are stored in the cloud before the server path changes.
  2. Set a default link expiration policy
    In the SharePoint admin center > Policies > Sharing > Link expiration, set a default expiration of 30 days for all new sharing links. This prevents old links from remaining active after migration.
  3. Audit all shared links in the department
    Use the SharePoint Online Management Shell to export a report of all shared links for the department’s site. Run the command: Get-SPOSite -Identity "https://tenant.sharepoint.com/sites/department" | Get-SPOSiteSharingReport. Review the report and notify users that links will break after migration.
  4. Communicate the migration timeline
    Send an email to all affected users at least two weeks before migration. Include the date, expected downtime, and instructions to save any important shared links as local copies or resend them after migration.

During Migration: Minimize Link Disruption

  1. Move files in batches by department
    Do not move all files at once. Use a phased approach to reduce the number of broken links at any one time. Move the smallest department first to test the process.
  2. Use SharePoint Migration Tool for large datasets
    Download and run the SharePoint Migration Tool from the Microsoft 365 admin center. This tool preserves file metadata and timestamps, which helps maintain some link integrity.
  3. Disable OneDrive sync during the migration window
    In the OneDrive admin center > Sync > Sync restrictions, add a rule to block sync for the affected users during the migration. This prevents sync conflicts when files move.

After Migration: Fix Broken Links and Verify

  1. Run a link validation script
    Use the SharePoint Online Management Shell to run Get-SPOSite -Identity "https://tenant.sharepoint.com/sites/department" | Get-SPOSiteSharingReport -Detailed. The report shows all broken links. Export the report to CSV and review it for invalid paths.
  2. Notify users to resend links
    Send a follow-up email with instructions to resend any broken shared links. Include a link to the new file location in SharePoint or OneDrive.
  3. Enable file restore for users
    In the OneDrive admin center > Storage > File restore, turn on the file restore feature. Users can restore files to a previous version if the migration caused accidental deletion or path mismatch.
  4. Update the DNS or UNC path if using DFS
    If the department uses Distributed File System, update the DFS namespace to point to the new server. This redirects old UNC links to the new location automatically.

ADVERTISEMENT

If Links Still Break After Following the Checklist

OneDrive Shows “File Not Found” for Recent Shared Links

This happens when the file was moved but the link still points to the old server path. The fix is to ask the user to open the file from the new location in OneDrive or SharePoint and then reshare it. To prevent this in future migrations, use SharePoint migration tools that preserve the file ID.

Sync Status Shows “Not Synced” for Mapped Network Drives

If users had OneDrive syncing to a mapped network drive that was migrated, the sync relationship breaks. The user must remove the old sync relationship and set up a new sync from the new location. In OneDrive settings > Account > Unlink this PC, then relink to the new SharePoint or OneDrive folder.

Shortcuts to Old Server Locations Stop Working

Shortcuts created by users on their desktop or in file explorer point to the old UNC path. After migration, these shortcuts show a red X. The user must delete the old shortcut and create a new one pointing to the new server path or to the OneDrive cloud location.

Link Behavior: File Server UNC vs OneDrive Cloud Links

Item File Server UNC Link OneDrive Cloud Link
Link format \\server\share\file.docx https://tenant.sharepoint.com/sites/site/Documents/file.docx
Link stability after migration Breaks when server or share path changes Remains intact if file ID is preserved
Admin control Requires DFS namespace or manual update Managed through SharePoint admin center policies
User ability to edit link Cannot edit; must create new link Can edit permissions or resend from OneDrive
Default expiration No expiration unless manually set Controlled by tenant-level link expiration policy

Using OneDrive cloud links instead of file server UNC links reduces the risk of broken links during future migrations. The admin checklist above helps transition users to cloud links before the migration begins.

With the checklist completed, you can now migrate files with minimal disruption to shared links. Test the process on a small group first. For advanced protection, configure a retention label on the department’s SharePoint site to preserve all versions of shared files, which allows users to restore a previous version if the migration corrupts a file. This approach keeps your team productive and avoids the frustration of broken links after a department move.

ADVERTISEMENT