Created
March 21, 2016 14:32
-
-
Save davops/48a1d830f4aef738c9cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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