HP Sure Recover User Guide
Generación de un maniesto
Debido a que varios archivos pueden estar involucrados con su imagen dividida, use un script de PowerShell 
para generar un maniesto.
En todos los pasos restantes, debe estar en la carpeta C:\staging.
CD /D C:\staging
1. Cree un script de PowerShell usando un editor que pueda producir un archivo de texto en formato UTF-8 
sin BOM, usando el siguiente comando: notepad C:\staging\generate-manifest.ps1
Cree el siguiente script:
$mftFilename = "custom.mft"
$imageVersion = 1907 (Nota: Esto puede ser cualquier entero de 16 bits)
$header = "mft_version=1, image_version=$imageVersion"
Out-File -Encoding UTF8 -FilePath $mftFilename -InputObject $header
$swmFiles = Get-ChildItem "." -Filter "*.swm"
$ToNatural = { [regex]::Replace($_, '\d*\....$', 
{ $args[0].Value.PadLeft(50) }) }
$pathToManifest = (Resolve-Path ".").Path
$total = $swmFiles.count
$current = 1
$swmFiles | Sort-Object $ToNatural | ForEach-Object {
 Write-Progress
 -Activity "Generating manifest" `
 -Status "$current of $total ($_)" `
 -PercentComplete ($current / $total * 100)
 $hashObject = Get-FileHash -Algorithm SHA256 -Path $_.FullName
 $fileHash = $hashObject.Hash.ToLower()
 $filePath = $hashObject.Path.Replace($pathToManifest + '\', '')
 $fileSize = (Get-Item $_.FullName).length
 $manifestContent = "$fileHash $filePath $fileSize"
 Out-File -Encoding utf8 -FilePath $mftFilename -InputObject 
$manifestContent -Append
Creación de un maniesto 7










