OSDeploy / OSD

OSD Shared Functions
MIT License
130 stars 54 forks source link

SHA1 Hash Check of ESD file after download #139

Open gwblok opened 2 months ago

gwblok commented 2 months ago

NO ETA

Include error handling if ESD file fails to download. Do a SHA1 Hash check to verify it downloaded properly, and if not, exit with appropriate error message.

Notes: $SHA1Hash = Get-FileHash $ImagePath -Algorithm SHA1 $ESDFile = Get-OSDCloudOperatingSystems -OSArch x64 | (SELECT THE exact OS) ($SHA1Hash.Hash -eq $ESDFile.SHA1)

image