When running the following Script:
<# Multiple Filename Changes #>
$old = “.itt"
$new = ".xml”
Get-ChildItem -Path C:\Temp -Filter *.itt | Rename-Item -NewName {[System.IO.Path]::ChangeExtension($_.Name, “.xml”)}
<# MD5 Hash Apply To New File Name #>
Sleep 1
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait(“{ENTER}”)
get-filehash $new -Algorithm MD5 | Format-Table -AutoSize Algorithm, Hash, Path, Size
For the Format-Table command, I see all columns populated with data. The only column I do not see populated with data
is the “Size” Column. I have a 100MB and 1GB file that have data being populated in the Algorithm, Hash, and Path columns but nothing in the Size column.
Can someone help me here?