Repair-SharePointNames
1.0.0
Processes only items flagged as INVALID_SHAREPOINT_NAME in a consolidated
migration-warnings.csv generated from SPMT assessment scan logs. It never
scans the filesystem on its own, so only items SPMT actually flagged are
touched.
Temp/system files (Office lock files, desktop.ini, InDesign lock files) are
moved to a quarantine folder, preserving their relative folder
migration-warnings.csv generated from SPMT assessment scan logs. It never
scans the filesystem on its own, so only items SPMT actually flagged are
touched.
Temp/system files (Office lock files, desktop.ini, InDesign lock files) are
moved to a quarantine folder, preserving their relative folder
Processes only items flagged as INVALID_SHAREPOINT_NAME in a consolidated
migration-warnings.csv generated from SPMT assessment scan logs. It never
scans the filesystem on its own, so only items SPMT actually flagged are
touched.
Temp/system files (Office lock files, desktop.ini, InDesign lock files) are
moved to a quarantine folder, preserving their relative folder structure,
rather than deleted. All other flagged items are renamed, replacing
characters SharePoint Online does not allow (" * : < > ? / \ |) with '-'.
Entries are processed deepest-path-first so a flagged folder is never
renamed before the flagged items inside it are handled. If a cleaned name
collides with an existing item, a numeric suffix is appended, e.g.
"report (2).txt". Quarantine moves never overwrite: an existing quarantined
file at the same relative path also gets a numeric suffix.
Show more
migration-warnings.csv generated from SPMT assessment scan logs. It never
scans the filesystem on its own, so only items SPMT actually flagged are
touched.
Temp/system files (Office lock files, desktop.ini, InDesign lock files) are
moved to a quarantine folder, preserving their relative folder structure,
rather than deleted. All other flagged items are renamed, replacing
characters SharePoint Online does not allow (" * : < > ? / \ |) with '-'.
Entries are processed deepest-path-first so a flagged folder is never
renamed before the flagged items inside it are handled. If a cleaned name
collides with an existing item, a numeric suffix is appended, e.g.
"report (2).txt". Quarantine moves never overwrite: an existing quarantined
file at the same relative path also gets a numeric suffix.
Installation Options
Owners
Copyright
(c) 2026 TrogdorTheMan. Licensed under GPL-3.0.
Package Details
Author(s)
- TrogdorTheMan
Tags
SharePoint SPMT Migration FileShare Rename SharePointOnline Windows
Functions
Test-QuarantineTarget Split-BaseName Get-CleanName Get-UniqueDestination Write-ActionLog
Dependencies
This script has no dependencies.
Release Notes
https://github.com/TrogdorTheMan/Repair-SharePointNames/blob/main/CHANGELOG.md
FileList
- Repair-SharePointNames.nuspec
- Repair-SharePointNames.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.1 | 6 | 7/6/2026 |
| 1.0.0 (current version) | 3 | 7/6/2026 |