Advanced Application Block techniques in OneView use file information such as file properties, file hash values, and file sizes to create block rules. These assist the rules in determining the correct files to block once identified with the correct characteristics. To obtain file information, see options below.
Run the following command in PowerShell to retrieve the file properties:
(Get-Item "<path to file>").VersionInfo | Format-List
The MD5, SHA1, or SHA256 hash can be obtained from a file using PowerShell. Run the following command to retrieve the hash:
Get-FileHash "path to file" -Algorithm <MD5|SHA1|SHA256> | Format-List
Run the following command in PowerShell to get the file size in number of bytes:
(Get-Item "<path to file>").Length
Watch this video to learn how to get file information for Application Block:
Return to Application Block guide for OneView.