InvalidItemNameChars
setting in web.config.There's a handy way to handle it automatically built into the sitecore API that you can use:
001
002 003 |
Add-Type -Path "C:\path\to\your\Sitecore.Kernel.dll"
$fixedName= [Sitecore.Data.Items.ItemUtil]::ProposeValidItemName($originalName) |
Just another reminder that in sitecore powershell you aren't limited to just the pre-defined powershell modules, you can add references to the sitecore kernel (or other relevant assemblies) and use the native sitecore API.