Applies to: Certain characters have special meanings when used in file names in OneDrive, SharePoint, Windows and macOS, such as "*" for wildcards, and "\" in file name paths. this Problem usually we faced in migration of documents from file System to SharePoint. Remove-InvalidFileNameChars.ps1. *, :, /, \. Why Is Filename Length Even An Issue In Windows? Delete … You can use the CleanInput method defined in this example to strip potentially harmful characters that have been entered into a text field that accepts user input. 4.1 Star (9) Downloaded 5,544 times. Category Scripting Techniques. Open winrar and you will see a list of files, where you will the suspect file "filename " (which was created by you as "filename : some_text.txt". (An 8.3 filename is a filename convention used as an alternate filename to the long filename for compatibility with legacy programs.) EXAMPLE PS C:\> Remove-InvalidFileNameChars -Name "