Skip to content

Instantly share code, notes, and snippets.

@davops
Created March 21, 2016 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davops/48a1d830f4aef738c9cd to your computer and use it in GitHub Desktop.
Save davops/48a1d830f4aef738c9cd to your computer and use it in GitHub Desktop.
#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