Skip to content

Assert WDACConfigIntegrity

Violet edited this page Dec 26, 2023 · 15 revisions

Assert-WDACConfigIntegrity available parameters

Assert-WDACConfigIntegrity [-SaveLocally] [-Path <FileInfo>] [-SkipVersionCheck] [<CommonParameters>]

This cmdlet scans all the relevant files in the WDACConfig module's folder and its subfolders, calculates their SHA2-512 hashes using the Get-FileHash cmdlet.

Then it downloads the cloud CSV file from the GitHub repository and compares the hashes of the local files with the ones in the cloud.

By doing so, you can ascertain that the files in your local WDACConfig folder are identical to the ones in the cloud and devoid of any interference.

If there is any indication of tampering, the outcomes will be displayed on the console.


3 Optional Parameters

  • -SaveLocally: This parameter is used to generate hashes of the final modules files prior to publishing them to the GitHub. This parameter shouldn't be used.

  • -Path: Can define a different path for the Hashes.csv file. This parameter shouldn't be used.

  • -SkipVersionCheck: Skips the check for new module version.










C#


Clone this wiki locally