get-filehash

“$xyz” and “Write-Host ”$xyz“” giving different output

巧了我就是萌 提交于 2021-02-08 07:22:19
问题 I am hashing all the files in one location, an origin folder, and writing the hashes to a variable and then doing the same to all the files in another location, a destination folder: $origin = Get-ChildItem .\Test1 | Get-FileHash | Format-Table -Property Hash -HideTableHeaders $destination = Get-ChildItem .\Test2 | Get-FileHash | Format-Table -Property Hash -HideTableHeaders Then I am comparing them with Compare-Object like so: Compare-Object $origin $destination Now in my test I purposefully

“$xyz” and “Write-Host ”$xyz“” giving different output

亡梦爱人 提交于 2021-02-08 07:21:56
问题 I am hashing all the files in one location, an origin folder, and writing the hashes to a variable and then doing the same to all the files in another location, a destination folder: $origin = Get-ChildItem .\Test1 | Get-FileHash | Format-Table -Property Hash -HideTableHeaders $destination = Get-ChildItem .\Test2 | Get-FileHash | Format-Table -Property Hash -HideTableHeaders Then I am comparing them with Compare-Object like so: Compare-Object $origin $destination Now in my test I purposefully

“$xyz” and “Write-Host ”$xyz“” giving different output

眉间皱痕 提交于 2021-02-08 07:21:02
问题 I am hashing all the files in one location, an origin folder, and writing the hashes to a variable and then doing the same to all the files in another location, a destination folder: $origin = Get-ChildItem .\Test1 | Get-FileHash | Format-Table -Property Hash -HideTableHeaders $destination = Get-ChildItem .\Test2 | Get-FileHash | Format-Table -Property Hash -HideTableHeaders Then I am comparing them with Compare-Object like so: Compare-Object $origin $destination Now in my test I purposefully