<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to  Verifying SHA-256 Hash on Windows with PowerShell</title><link>https://sourceforge.net/p/jdiskmark/wiki/%2520Verifying%2520SHA-256%2520Hash%2520on%2520Windows%2520with%2520PowerShell/</link><description>Recent changes to  Verifying SHA-256 Hash on Windows with PowerShell</description><atom:link href="https://sourceforge.net/p/jdiskmark/wiki/%20Verifying%20SHA-256%20Hash%20on%20Windows%20with%20PowerShell/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 24 Feb 2024 23:44:13 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jdiskmark/wiki/%20Verifying%20SHA-256%20Hash%20on%20Windows%20with%20PowerShell/feed" rel="self" type="application/rss+xml"/><item><title> Verifying SHA-256 Hash on Windows with PowerShell modified by James Mark Chan</title><link>https://sourceforge.net/p/jdiskmark/wiki/%2520Verifying%2520SHA-256%2520Hash%2520on%2520Windows%2520with%2520PowerShell/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here are instructions for verifying the SHA-256 hash of a file using PowerShell:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open PowerShell:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Click on the Start menu and search for PowerShell.&lt;br/&gt;
Right-click on PowerShell and select Run as administrator. This is important to access certain system files.&lt;br/&gt;
2. Identify the file and its SHA-256 hash:&lt;/p&gt;
&lt;p&gt;Locate the file you want to verify.&lt;br/&gt;
Obtain the expected SHA-256 hash value for the file. This information is usually provided by the software developer or download source.&lt;br/&gt;
3. Use the Get-FileHash cmdlet:&lt;/p&gt;
&lt;p&gt;There are two ways to use the Get-FileHash cmdlet:&lt;/p&gt;
&lt;p&gt;Method A: Using the file path:&lt;/p&gt;
&lt;p&gt;In the PowerShell window, type the following command, replacing &amp;lt;file_path&amp;gt; with the actual path to your file:&amp;lt;/file_path&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Get-FileHash &amp;lt;file_path&amp;gt; -Algorithm SHA256&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Method B: Drag and drop the file:&lt;/p&gt;
&lt;p&gt;Navigate to the file location in the File Explorer.&lt;br/&gt;
Click and hold the file, then drag it into the PowerShell window.&lt;br/&gt;
Release the file, and PowerShell will automatically add the path to the command.&lt;br/&gt;
Press Enter to execute the command.&lt;br/&gt;
4. Compare the hash values:&lt;/p&gt;
&lt;p&gt;The Get-FileHash command will display the calculated hash value for the file, along with the algorithm used (SHA256 in this case).&lt;br/&gt;
Compare the displayed hash value with the expected SHA-256 hash you obtained earlier.&lt;br/&gt;
5. Interpretation:&lt;/p&gt;
&lt;p&gt;If the two hash values match exactly, the file is considered verified and has not been tampered with.&lt;br/&gt;
If the hash values do not match, it indicates that the file has been modified or corrupted, and you should not use it.&lt;br/&gt;
Additional notes:&lt;/p&gt;
&lt;p&gt;You can also use wildcards with the file path in the Get-FileHash command, for example, Get-FileHash *.exe -Algorithm SHA256 to verify all executable files in the current directory.&lt;br/&gt;
For more advanced usage, you can pipe the output of Get-FileHash to other cmdlets for further processing or comparison.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Mark Chan</dc:creator><pubDate>Sat, 24 Feb 2024 23:44:13 -0000</pubDate><guid>https://sourceforge.netd56329c11db7ee79b5a31550cd7c6fa24d44034a</guid></item></channel></rss>