Set-Location "C:\Users\ritracyi\Downloads\ISOs"Get-ChildItem ".\" -Filter "*.zip*" | Get-FileHash | Export-Clixml .\UploadedZipFileHash.xmlGet-ChildItem ".\" -Filter "*.zip*" | Get-FileHash | Export-Clixml .\DownloadedZipFileHash.xmlCompare-Object (Import-Clixml .\UploadedZipFileHash.xml) (Import-Clixml .\DownloadedZipFileHash.xml -OutVariable 'downloads') -Property Hash -OutVariable 'NotEqual'If nothing is displayed, the hashes are valid. Continue to build media. If a hash comparison comes back, there is a file that is not valid and must be re-downloaded and checked again. To find the invalid file run:
Split-Path ($downloads | Where {$_.Hash -in $NotEqual.hash}).Path -Leaf- Make updates to the OEM items if needed.
- Run Update content on Media. This will build the initial or update content folder based on Deploymentshare used to build the media. WARNING: This may generate an ISO, but do not use this just yet
NOTE Properties being added to the ini are:
Hash_DeployFiles=<hash>
Hash_DeployFolders=<hash>
Hash_DeployTS=<hash>
Hash_DeployWIM=<hash> .\LTIHashStoreUI.ps1 -WorkingPath "C:\DeployOEM\Content\Deploy" -StoreType StoreHash -TaskSequenceID WIN10_DEP.\LTIHashCheckUI.ps1 -WorkingPath %DeployDrive%\Deploy -Title 'Validate Media' -CompareType StoredHash -TaskSequenceID WIN10_DEP -ShowStatusUI.\LTIHashCheckUI.ps1 -WorkingPath %OSDisk%\Deploy -Title 'Validate Transfer' -CompareType StoredHash -TaskSequenceID WIN10_DEP -ShowStatusUI.\LTIHashCheckUI.ps1 -WorkingPath %DeployDrive% -Title 'Validate Content' -CompareType StoredHash -TaskSequenceID %TaskSequenceID% -ShowStatusUI