Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Powershell script to return files in a path that use unicode characters from the Latin-1 Supplement. UTC time is returned to account for different timezones
get-childitem C:\FileShare -recurse |
Where {$_.Name -match "[\u00C0-\u00FF]"} |
select @{label="File Name";Expression={$_.BaseName};},
Directory, @{label="Date Created(UTC)";Expression={$_.CreationTimeutc}},
@{label="Date Modified(UTC)";Expression={$_.LastWriteTimeutc}},
@{Label="File Size(KB)";Expression={$_.length / 1kb -as [int32]}} | Format-Table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment