Hi,
This is definitely easier with PowerShell, you can try the followng PowerShell script:
$SpecialChar = [char]0x005F
Get-ChildItem -File -Recurse | Where-Object {!$_.Name.Contains($SpecialChar)} | Remove-Item
The [char]0x005F is the Unicode Binary for underscore "_"
https://unicodemap.org/search.asp?search=_
Make sure you test it on a test folder first!
Best regards,
Leon
Blog:
https://thesystemcenterblog.com
LinkedIn:
