markhallen
9/19/2018 - 12:50 PM

PS file name sanitizer

Remove characters that are invalid for file names

[System.IO.Path]::GetInvalidFileNameChars() | % {$text = $text.replace($_,'.')}