Migrate a file server to SharePoint: method, tools and structure for an SMB
Migrating a file server to SharePoint and OneDrive: what goes where, permissions, limits, SPMT or Migration Manager, pilot and cutover. A guide for SMBs.

The short answer: migrating a file server to SharePoint is not a disk copy. It is first a decision about structure: personal files go to OneDrive, team files go to one SharePoint site per department or project (or to the matching Teams team), with permissions granted by group rather than folder by folder. Then come the clean-up (forbidden names, paths that are too long, duplicates, archives), a pilot migration, incremental passes with Microsoft’s free tool (SPMT or Migration Manager), and finally a single cutover for everyone. The old share stays read-only while you check. This guide follows that order and relies only on Microsoft’s official documentation.
At ALLSAFE SOLUTIONS, a Microsoft partner in Casablanca, we run these migrations for SMBs in Morocco as part of our Microsoft 365 and Azure cloud services in Morocco: audit of the existing share, target structure, migration and user support.
Why leave the file server
The traditional file server, or NAS, has served well, but it now causes the same problems in most SMBs:
- Remote access requires a VPN, often slow, and files travel by e-mail as soon as someone is on the road.
- Permissions have become unreadable: years of exceptions set folder by folder that nobody can explain any more.
- The hardware is ageing: disks, operating system, warranty, and a backup that needs watching.
- Co-authoring is impossible: an Excel file opened by one person is locked for everyone else.
If you already have Microsoft 365 licenses, SharePoint and OneDrive are included in Business Basic, Standard and Premium (see our comparison of Business Basic, Standard or Premium). The migration makes use of licenses you are often already paying for.
What should not go to SharePoint
Not everything should be migrated. Before starting, set aside:
- Files opened directly by an application on a network share: the database of accounting, payroll or sales management software. This software expects a real SMB share; keep it on a server, or move to its cloud edition.
- Very large files (video, drawings, disk images): SharePoint accepts files up to 250 GB, but syncing this kind of content to devices should be tested before rolling it out.
- Archives nobody opens any more: they can go to a read-only archive library, or stay on backed-up archive storage, rather than cluttering working sites.
What goes where: OneDrive, SharePoint or Teams
The rule in Microsoft’s migration guide is simple: if a file belongs to one person, even if it is occasionally shared, it goes to their OneDrive, which is private by default. If it is meant for team work, it goes to a shared library where members have access by default.
| Content on the server | Destination | Who manages access |
|---|---|---|
| Personal folders (“U:” drive, “My Documents”) | The user’s OneDrive | The user |
| Department folder (Accounting, HR, Sales) | One SharePoint team site per department, or a Teams team | The department’s Microsoft 365 group |
| Project or customer folder | One site or Teams team per project, archived when the project ends | The project group |
| Templates, procedures, reference documents | Communication site, read-only for everyone | Site owners; readers in the Visitors group |
| Old archives | Read-only archive library | Administrator |
Two things to know about Teams: a team’s files are stored in a SharePoint site, and each standard channel is a folder in that site’s library. A private or shared channel creates its own site. Creating a department in Teams therefore means creating a SharePoint site, with the same storage and permission rules.
A flat architecture and simple permissions
The habit inherited from the file server is to rebuild one giant tree: a single site, dozens of nested folders, different permissions at each level. Microsoft recommends the opposite.
- One site per unit of work. Each department or project has its own site. Subsites are still supported, but Microsoft advises against them: a reorganisation of the business breaks the whole hierarchy.
- Sites linked by a hub site. The hub connects sites (shared navigation, shared search) without changing their permissions. A site belongs to only one hub.
- Permissions at site level, by group. For a team site, permissions are managed through the associated Microsoft 365 group: its owners become site owners and its members become site members. Read-only access is given by adding the person to the Visitors group.
- Few exceptions. SharePoint supports up to 50,000 uniquely permissioned items in a list or library, but Microsoft recommends staying under 5,000. If a subfolder must be confidential, it often deserves its own site.
On the migration side, Microsoft warns that advanced NTFS permissions are removed and explicit deny permissions are not migrated. A share whose security relies on deny entries must be redesigned before the migration, not after.
Limits to check before migrating
Most migration errors come from names or paths that SharePoint rejects. These are the limits published by Microsoft:
| Item | Limit published by Microsoft |
|---|---|
| File size | 250 GB |
| Full path length (folders + file name) | 400 characters |
| Characters not allowed in names | " * : < > ? / \ | plus leading and trailing spaces |
| Reserved names | .lock, CON, PRN, AUX, NUL, COM0 to COM9, LPT0 to LPT9, desktop.ini, names starting with ~$, _vti_ anywhere |
| Recommended sync | No more than 300,000 files across all libraries synced on a device |
| Tenant storage (Business, Enterprise) | 1 TB + 10 GB per license purchased |
| Storage per site | 25 TB |
Paths that are too long are the most frequent trap: on a server, people stack up levels of folders with descriptive names, and the SharePoint site address is added to the path. Shortening the tree during the clean-up fixes both this issue and readability. Microsoft also suggests splitting a large drive that serves several purposes into several more focused destinations.
SPMT or Migration Manager: which tool
Microsoft provides two free tools, which copy files without deleting the source:
| SharePoint Migration Tool (SPMT) | Migration Manager | |
|---|---|---|
| Installation | Application on a PC or server | Console in the SharePoint admin center, lightweight agents installed on one or more machines |
| Sources | File shares, SharePoint Server 2010 to 2019 | File shares (and other clouds such as Google Workspace, Box, Dropbox, Egnyte) |
| Typical case | One file server, an SMB | Several servers or sites, a large volume to spread out |
| Machine running it | Windows 10 or Windows Server 2016 and later, .NET Framework 4.6.2 or later, 8 GB RAM minimum (16 GB recommended), 150 GB free space | Same hardware recommendations per agent; the source server must support SMB 2.0 or higher |
| Permissions needed | SharePoint admin (or target site admin) and read access to the share | SharePoint admin or Migration Admin role, and read access to the share |
The SPMT settings that matter for a file server:
- Preserve file share permissions and automatic user mapping to Microsoft Entra ID (or a custom user mapping file).
- Only perform scanning: a first pass that lists issues without copying anything.
- Replace invalid filename characters, instead of skipping the affected files.
- Filters: exclude hidden files, certain extensions, or migrate only files modified after a given date.
- Migration auto re-run: the task can rerun up to five successive times to copy only new or changed files.
For organisations with 500 licenses or more, Microsoft also offers FastTrack, included in the subscription, which performs some migration activities.
The method in seven steps
- Inventory. Size, number of files, folders actually in use, owner of each folder, current permissions. An SPMT scan-only run lists the blocking files.
- Clean-up. Remove duplicates and temporary files, archive what is no longer opened, shorten paths, rename files with forbidden names.
- Target structure. A mapping table “source folder → target OneDrive, site or library”, Microsoft 365 groups and owners for each site, validated with department heads.
- Tenant preparation. Create sites and teams, pre-provision users’ OneDrive (Microsoft requires it before migration), set external sharing, and protect the tenant following our 10 settings to secure Microsoft 365.
- Pilot. Microsoft recommends a small set of users to validate the process, performance and communication, and to collect first feedback.
- Incremental passes, then a single cutover. The main copy runs in the background; later passes only pick up changes. Microsoft then recommends a single cutover event for all users: the share goes read-only, a final incremental pass runs, and everyone now works in OneDrive and SharePoint.
- User onboarding. A message to users before the cutover (content they already have in OneDrive is not overwritten), a prepared helpdesk, and a one-page guide: where things are, how to share, how to find a file.
On duration, Microsoft notes that reading the source is usually the bottleneck, that antivirus on the migration machine can slow transfers, and that SharePoint throttling can neither be disabled nor lifted through a support ticket. It is more favourable in the evenings and at weekends: the right time for large passes.
After the cutover: sync, security and backup
Sync. Microsoft recommends adding shortcuts to libraries in OneDrive rather than using the Sync button: a shortcut follows the user on all their devices and performs better. The Sync button can even be hidden on team sites. With Files On-Demand, devices do not need to download all the content.
Device security. Files available everywhere require managed devices: encryption, compliance and conditional access, as described in our Microsoft Intune guide for SMBs.
Backup. SharePoint and OneDrive offer a recycle bin and version history, but Microsoft does not provide a backup in the sense of an independent copy kept outside the service. This is the Microsoft 365 shared responsibility model: plan an external backup, ideally following the 3-2-1 rule with an immutable copy.
The old server. Keep it read-only while you check, then back it up one last time before retiring it. Migration tools copy without ever deleting the source.
The most common mistakes
- Rebuilding the server tree identically in a single site, with different permissions at every level.
- Migrating without clean-up, then discovering thousands of path-too-long errors.
- Moving each department on a different date, leaving users working in two places for weeks.
- Syncing every library on every device and exceeding the recommended sync limit.
- Forgetting files opened by business software, which stops working once they are moved.
- Retiring the old server without a final backup or a tenant backup.
Checklist before starting
- Total volume, number of files and folders actually in use.
- List of files opened by applications, to exclude.
- SPMT scan report: paths too long, forbidden names, inaccessible files.
- Source → destination mapping table approved by each department.
- Microsoft 365 groups and owners for each site.
- Microsoft 365 licenses and tenant storage quota checked.
- Cutover date, message to users, helpdesk ready.
- Tenant backup in place before the cutover.
How we work
We start with an audit of the existing server: volumes, permissions, applications that depend on it, and analysis of blocking files. We then propose a target structure with your department heads, prepare the tenant and its security, run a pilot migration, then the incremental passes and the cutover, outside working hours. Users receive a simple guide and our support replies within 24 business hours; once in production, the tenant is monitored 24/7 under our managed Microsoft 365 cloud contracts, and a critical incident is handled in under 15 minutes.
Planning to leave your file server or NAS? Request your free initial audit: we analyse your current share and propose a SharePoint and OneDrive structure suited to your teams.
Sources: introducing the SharePoint Migration Tool, what SPMT supports, SPMT settings, SPMT prerequisites, Migration Manager for file shares, Migration Manager prerequisites, choosing a migration tool, file share to OneDrive and SharePoint migration guide, migration speed, SharePoint limits, OneDrive and SharePoint restrictions, sync and shortcuts, site storage, hub sites, sharing and permissions, Teams-connected sites.
Frequently asked questions
Can SharePoint fully replace our file server?
For office documents, PDFs and folders shared between colleagues, yes, and that is the most common case. You should however keep local storage or a server for files that an application opens directly on a network share (an accounting or business software database, for example), and assess very large video or drawing files case by case.
Which tool should we use: SPMT or Migration Manager?
Both are free and provided by Microsoft. SPMT is installed on a computer or server and suits a single file server well. Migration Manager is run from the SharePoint admin center and spreads the work across several agents installed on machines in your network: it becomes useful when there are several servers or a large volume.
Are NTFS permissions preserved?
Partly. SPMT has a setting to preserve file and folder permissions, with automatic mapping of Active Directory accounts to Microsoft Entra ID. But Microsoft states that advanced NTFS permissions are removed and explicit deny permissions are not migrated. It is a chance to simplify: permissions set at site level, by group, rather than folder by folder.
Can users keep working in Windows File Explorer?
Yes, with the OneDrive sync app. Microsoft recommends adding shortcuts to libraries in OneDrive rather than using the Sync button, and not syncing more than 300,000 files in total on a device. With Files On-Demand, files show in File Explorer without all being downloaded.
How much SharePoint storage do we have?
For Business and Enterprise plans, Microsoft gives the tenant 1 TB plus 10 GB per license purchased. This space is shared between SharePoint sites and Teams teams, with a maximum of 25 TB per site. Extra storage can be purchased if needed.
About the editorial team
ALLSAFE SOLUTIONS
Network, security and cloud engineers
Written by the engineering team at ALLSAFE SOLUTIONS, a managed IT provider founded in Casablanca by network, security and cloud engineers. Our articles draw on the projects we deliver for clients in Morocco and abroad.
LinkedIn









































