Skip to content

Commit cc35df1

Browse files
authored
Improve Windows hashsum check
1 parent 7b5c2ce commit cc35df1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/content/docs/cachyos_basic/download.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ Always take the extra step of verifying the ISO's integrity to avoid any undesir
2929

3030
<Steps>
3131

32-
1. Download the [file](https://mirror.cachyos.org/ISO/desktop/260308/cachyos-desktop-linux-260308.iso.sha256) containing the SHA256 hash **(Open it with a text editor, e.g., Notepad)**.
33-
2. Open CMD or PowerShell as Administrator and [navigate](<https://www.wikihow.com/Change-Directories-in-Command-Prompt>) to the path where the ISO and SHA256 files are stored.
32+
1. Download the [file](https://mirror.cachyos.org/ISO/desktop/260308/cachyos-desktop-linux-260308.iso.sha256) containing the SHA256 hash.
33+
2. Open CMD or PowerShell and [navigate](<https://www.wikihow.com/Change-Directories-in-Command-Prompt>) to the path where the ISO and SHA256 files are stored.
3434
3. Execute the following command:
3535
```powershell
3636
# Example:
37-
certUtil -hashfile cachyos-desktop-linux-260308.iso SHA256
37+
powershell powershell "sv f (-split (Get-Content 'cachyos-desktop-linux-260308.iso.sha256')); if (((certutil -hashfile (gv f -v)[1] SHA256)[1] -replace ' ','') -eq (gv f -v)[0]) { 'OK' }"
3838
```
39-
4. Compare the certUtil hash output to the one from the downloaded file in **Step 1**. If they match, you may proceed with the CachyOS installation.
39+
4. If the output from **Step 3** is OK, you may proceed with the CachyOS installation.
4040

4141
</Steps>
4242

0 commit comments

Comments
 (0)