Skip to content

Commit

Permalink
Update autopilot.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdwegen authored Aug 17, 2023
1 parent 3464ebd commit 807c93a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/autopilot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ try {
$savePath = (Save-File -filename $serialNumber)
#$hashFileDetails | Export-Csv -Path $savePath -Force -NoTypeInformation
$hashFileDetails | ConvertTo-CSV -NoTypeInformation | % {$_ -replace '"',''} | Out-File $savePath

if (Test-Path -Path $savePath) {
Write-Host "Hash file for device $serialNumber saved to $savePath" -ForegroundColor Green
}
} catch {
throw "Unable to save hash file: $($_.Exception.Message)"
}

0 comments on commit 807c93a

Please sign in to comment.