Azure-Samples / Azure-Samples/azure-files-samples

Script Failed to rename un-supported characters!

Open
#81 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
261
Forks
202
Avg merge
1d 5h
Merged PRs (30d)
4

Description

PS C:\Users\IlievI\Desktop> .\ScanUnSupportedFiles.ps1 -SharePath \\*servername\Sharename\TestRenameSync -RenameItems -ReplacementString " " | Out-File -FilePath c:\Users\user\Desktop\TestRename.txt
Normalized Share path: \\?\unc\*servername\Sharename\TestRenameSync
ReplacementString not provided, using default as ''
Unsupported char code point: 129
File/Directory name contains a control char that is not supported with combination of other char
Unsupported char code point: 129
File/Directory name contains a control char that is not supported with combination of other char
Unsupported char code point: 129
File/Directory name contains a control char that is not supported with combination of other char
Unsupported char code point: 129
File/Directory name contains a control char that is not supported with combination of other char
Unsupported char code point: 129
File/Directory name contains a control char that is not supported with combination of other char
Unsupported char code point: 129
File/Directory name contains a control char that is not supported with combination of other char
Processed Item count: 1
==================== Scan Results Started =========================
Files/Directories with unsupported characters, total count: 1
========================== File Path too long start==========================================
Files/Directories having path length > 2048 chars (current limit for azure files), total count: 0
========================== File Path too long end ==========================================
Files/Directories with unsupported characters, total count: 1
Number of Files/Directories which can be fixed using this script: 1
Exception Illegal characters in path.
Failed to rename \\?\unc\*servername\Sharename\TestRenameSync\sd????d?yNet?.txt to
\\?\unc\*servername\Sharename\TestRenameSync\sddyNet.txt
***************************Items rename table start***************************
***************************Items rename table end*****************************
***************************Items failed to rename table start*****************************
Number of Files/Directories failed to rename: 1
***************************Items failed to rename table end*****************************

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.