file path / name are trancated in powershell

wjing 1 Reputation point
2020-08-06T22:18:36.057+00:00

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
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,455 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 45,831 Reputation points
    2020-08-07T02:28:18.053+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. 2020-08-20T01:49:10.437+00:00

    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.
    :)

    0 comments No comments