question

wjing-6697 avatar image
0 Votes"
wjing-6697 asked YoungYang-MSFT answered

file path / name are trancated in powershell

cmd.exe /c powershell.exe Get-FileHash -Algorithm SHA256 -Path (Get-ChildItem '.\Single Cycle*.*') > SHA256_report.txt

it does not display full information, e.g.
Algorithm Hash Path


SHA256 42809D3511FC0B23FE36340F623C063B649344BCA23751423A9DB08FABD28FC6 C:\NDPT\1804\Single Cycle\136...
SHA256 E8BDF55119F60A14C8067EB3010CEAF89A92436AC161BD88C870051E7AE12424 C:\NDPT\1804\Single Cycle\CON...

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
1 Vote"
RichMatheisen-8856 answered

Try this instead:

 Get-FileHash -Algorithm SHA256 -Path (Get-ChildItem .\SingleCycle*.*) | Export-CSV -Path SHA256_report.csv -NoTypeInformation

The default formatting of the ">" isn't what you want for this sort of task.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YoungYang-MSFT avatar image
0 Votes"
YoungYang-MSFT answered

Hi, given that this post has been quiet for a while, this is a quick question and answer. Has your question been solved? If so, please mark it as an answer so that users with the same question can find and get help.
:)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.