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
Get-ChildItem \\servername\sharename -Recurse -Force | | |
Where { $_.Name -match '[\u00C0-\u00FF -[\u00D7\u00F7]]'} | | |
ForEach-Object {[PSCustomObject]@{Name=$_.Name;Directory=$_.Directory;'Creation Date'=$_.CreationTime;'Last Modification Date'=$_.LastWriteTime;'File Size'=$_.Length} } | | |
Format-Table -AutoSize |
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
Import-Csv .\input.csv | Add-Member -MemberType ScriptProperty -Name 'OSVersion' -Value $([scriptblock]::create('(Get-WmiObject Win32_OperatingSystem -ComputerName $this.MachineName).caption' )) -PassThru | Export-Csv output.csv -NoTypeInformation |