Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Searches for files with the Latin 1 Supplement letters in the given directory
$table = @{Expression={$_.Name};Label="Name";width=20},@{Expression={$_.Directory};Label="Directory";width=50},@{Expression={$_.CreationTime};Label="Creation Date";width=25},@{Expression={$_.LastWriteTime};Label="Last Modification Date";width=25},@{Expression={$_.Length};Label="File Size";width=10}
Get-childItem "\\server1\FileShare" -Recurse | Where {$_.Name -match "[\u00C0-\u00FF]" -AND $_.Attributes -notlike "*Directory*"} | format-table $table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment