Automate Document Migration for Microsoft Word
A library migration usually gets planned around the platform: accounts, permissions, folder structure, cutover weekend. The documents themselves get treated as cargo. Then the library goes live and users open a contract that links to a file server that no longer exists, a policy whose footer names the old intranet, or a template that points at a retired document path. The files arrived, but they still describe the old world.
WordPipe is a batch editor for Microsoft Word. It applies a list of search and replace pairs to every DOC, DOCX and RTF file in the folders you select, including headers, footers, text boxes and document properties. This guide covers how to plan a Word library migration so that the content is corrected once, before the move, and what to check so the new platform opens clean files.
When to Use This
This approach fits migrations where the destination changes how documents are addressed, named or branded. Typical triggers:
- Moving from file shares to a cloud platform. Mapped drive letters and UNC paths such as \\fileserver01\policies stop resolving after the move.
- Changing document management systems. Document numbers, library names and URL patterns in cross-references follow a different scheme.
- Consolidating after a merger. Two libraries become one, and one set of product names, templates and contact details must give way to the other.
- Standardizing format on the way in. Legacy DOC and RTF files are being brought into a DOCX-only repository.
- Records system onboarding. The new system requires consistent metadata, such as the Title and Subject properties, to be populated correctly at import.
This page is about planning a one-time library move. If you are applying a list of replacements to a set of files as the main job, see migrating Word documents with automated replacements. For recurring job scheduling and large queues of files, read about the Word document batch processing tool. Teams rolling this out as a managed change should also look at Word document automation for IT departments and find and replace for large organizations.
Step-by-Step Configuration
- Inventory the library. Count files by folder and type, and note which are active, archived or under retention rules. A short inventory tells you what is in scope and how long a full run will take.
- Build the old-to-new map. Write each old server name, path prefix, URL pattern and product name next to its replacement. Search a sample of files to find variants, such as forward slash, backslash and URL-encoded forms of the same path.
- Enter pairs, longest first. Place \\fileserver01\policies\hr above \\fileserver01\policies, so the shorter prefix cannot rewrite the start of the longer path.
- Select folders. Pick the folders being migrated with subfolders included. Exclude records under legal hold, which must reach the new platform unchanged.
- Choose document parts. Tick body text, headers, footers, text boxes and document properties. Old paths often live in footers and in template references.
- Back up and pilot. Copy the source folders, process about thirty files from several departments, open them and click the links. Then run the full library.
- Import and verify. Move the corrected files to the new platform and sample again there, since the platform may add its own link rewriting.
Mapping cheat sheet
| Old item | Search | Replace |
|---|---|---|
| File server path | \\fileserver01\policies | https://contoso.sharepoint.com/sites/policies |
| Old intranet host | http://intranet.contoso.local | https://contoso.sharepoint.com |
| Document number prefix | DOC-HR- | HR-POL- |
| Retired template name | Contoso Letterhead v2 | Contoso Letterhead 2025 |
Paths with backslashes are separate patterns from the same path written as a web address, so keep one pair for each form found in your sample.
Original Example: Moving Harbor Freight Logistics from File Servers to SharePoint
Harbor Freight Logistics, a regional shipping company, planned to retire three file servers over one weekend and move its operating documents to SharePoint Online. The inventory counted 14,620 Word files: 9,300 standard operating procedures, 3,900 customer service contracts and templates, and 1,420 safety and compliance documents. A sample of 200 files found that 138 contained at least one reference that would break after cutover: a UNC path, an intranet address, or a document number from the old numbering scheme.
The IT lead and a records coordinator built a map of seven pairs, listed longest first, and excluded a folder of 310 documents under a regulatory hold:
- "\\hfl-fs01\SOP\Safety" became "https://hfl.sharepoint.com/sites/safety"
- "\\hfl-fs01\SOP" became "https://hfl.sharepoint.com/sites/operations"
- "\\hfl-fs02\Contracts" became "https://hfl.sharepoint.com/sites/contracts"
- "http://intranet.hfl.local" became "https://hfl.sharepoint.com"
- "SOP-" became "OPS-" in document numbers, matched with the following digit pattern checked in the pilot
Before, a typical procedure ended: "Revision log kept at \\hfl-fs01\SOP\Safety. Questions: see http://intranet.hfl.local/help. Ref SOP-2214." After the run it read: "Revision log kept at https://hfl.sharepoint.com/sites/safety. Questions: see https://hfl.sharepoint.com/help. Ref OPS-2214."
The pilot of 30 files exposed a problem. The "SOP-" pair also hit the phrase "SOP-compliant" in 41 sentences, so the team narrowed it to whole-word matches on each numbered prefix. The full run processed 14,310 files in just under three hours and logged 52,880 replacements. A second sample of 200 files found 0 broken references, against 138 before. The coordinator estimated manual correction at about 240 hours across four people. The team spent 14 hours, including the pilot and a manual review of 26 files with scanned images inside text boxes. Cutover finished on schedule, and the first week produced two link tickets instead of the several hundred forecast.
Common Pitfalls
- Running after the migration. Once files sit in the new platform, they may be checked in, versioned or locked. Correcting them beforehand is simpler and leaves a clean backup.
- Missing path variants. The same server may appear as a UNC path, a mapped drive such as S:\, and a file:// address. Each is its own search.
- Pair order. A short prefix applied before a longer one leaves a half-converted path that no one can click through.
- Over-broad short terms. Prefixes like "SOP-" can match ordinary words. Use whole-word matching and test in the pilot.
- Visible text versus link target. A hyperlink can show one address and open another. Check both after a trial.
- Altering protected records. Files under hold or retention rules should be excluded and migrated as they are.
- Treating the report as proof. A log shows replacements made, not links that work. Click a sample on the new platform.
FAQ
Does WordPipe move the files to the new platform?
No. WordPipe edits the content of Word files in folders you select. You still copy or import the corrected files into the new system with your migration tool or a file copy.
Can WordPipe fix hyperlinks that point to the old server?
Yes. Add a pair for the old address prefix and its new equivalent. Hyperlink targets and visible link text can differ, so check both in a trial run.
Should I fix the documents before or after the migration?
Before is usually easier, because the files sit in ordinary folders and can be backed up and compared. Fixing afterwards means editing files inside the new system, which may limit access or add version history noise.
Does it work on older DOC files as well as DOCX?
Yes. WordPipe processes DOC, DOCX and RTF files. If your target platform needs DOCX only, convert the format as a separate step and run WordPipe on the converted files.
Related Use Cases
- Migrate Word documents with automated replacements: build and test the replacement list itself.
- Word document batch processing tool: handle large queues of files in one run.
- Word document automation for IT departments: fit batch edits into change management.
- Word find and replace tool for large organizations: coordinate edits across many teams and folders.
- Mass update document properties in Word files: set author, title and custom properties during a move.
- All WordPipe use cases: the full list of batch editing scenarios.