HP EliteBook 745 Sure Recover User Guide - Page 12

Splitting the image, Creating a manifest

Page 12 highlights

NOTE: refers to the USB drive. Replace with the correct drive letter. Edit the "my-image" part of file name, and the description, as needed. dism /Capture-Image /ImageFile:.wim /CaptureDir:C:\ / Name: 4. Copy the image from USB to the staging area on your working system using the following command: robocopy \ C:\staging .wim You should have the following image file: C:\staging\my-image.wim. 5. Go to Splitting the image on page 6. Splitting the image HP recommends that you split the image into smaller files to improve reliability of network downloads, using the following command: dism /Split-Image /ImageFile:C:\staging\.wim /SwmFile:C:\staging \.swm /FileSize:64 NOTE: FileSize is shown in megabytes. Edit as necessary. NOTE: Because of the nature of DISM's split algorithm, the sizes of the generated SWM files might be either smaller or larger than the stated file size. Creating a manifest Format manifest files as UTF-8 without Byte Order Mark (BOM). You can change the manifest file name (custom.mft) used in the following procedures, but you must not change the extensions .mft and .sig, and the file name portion of the manifest and signature files must match. For example, you can change the pair (custom.mft, custom.sig) to (myimage.mft, myimage.sig). mft_version is used to determine the format of the image file and must currently be set to 1. image_version is used to determine if a newer version of the image is available and to prevent older versions from being installed. Both values must be unsigned 16-bit integers, and the line separator in the manifest must be '\r\n' (CR + LF). Generating a manifest Because several files might be involved with your split image, use a powershell script to generate a manifest. In all remaining steps, you must be in the C:\staging folder. CD /D C:\staging 1. Create a powershell script using an editor that can produce a text file in format UTF-8 without BOM, using the following command: notepad C:\staging\generate-manifest.ps1 Create the following script: $mftFilename = "custom.mft" $imageVersion = 1907 (Note: This can be any 16-bit integer) 6 Chapter 2 Creating a corporate image

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

NOTE:
<U:>
refers to the USB drive. Replace with the correct drive letter.
Edit the “my-image” part of
file
name, and the
<my-image>
description, as needed.
dism /Capture-Image /ImageFile:<U:><\my-image>.wim /CaptureDir:C:\ /
Name:<My Image>
4.
Copy the image from USB to the staging area on your working system using the following command:
robocopy <U:>\ C:\staging <my-image>.wim
You should have the following image
file:
C:\staging\my-image.wim.
5.
Go to
Splitting the image
on page
6
.
Splitting the image
HP recommends that you split the image into smaller
files
to improve reliability of network downloads, using
the following command:
dism /Split-Image /ImageFile:C:\staging\<my-image>.wim /SwmFile:C:\staging
\<my-image>.swm /FileSize:64
NOTE:
FileSize is shown in megabytes. Edit as necessary.
NOTE:
Because of the nature of DISM's split algorithm, the sizes of the generated SWM
files
might be either
smaller or larger than the stated
file
size.
Creating a manifest
Format manifest
files
as UTF-8 without Byte Order Mark (BOM).
You can change the manifest
file
name (custom.mft) used in the following procedures, but you must not
change the extensions .mft and .sig, and the
file
name portion of the manifest and signature
files
must
match. For example, you can change the pair (custom.mft, custom.sig) to (myimage.mft, myimage.sig).
mft_version
is used to determine the format of the image
file
and must currently be set to 1.
image_version
is used to determine if a newer version of the image is available and to prevent older
versions from being installed.
Both values must be unsigned 16-bit integers, and the line separator in the manifest must be
‘\r\n’ (CR
+ LF)
.
Generating a manifest
Because several
files
might be involved with your split image, use a powershell script to generate a manifest.
In all remaining steps, you must be in the C:\staging folder.
CD /D C:\staging
1.
Create a powershell script using an editor that can produce a text
file
in format UTF-8 without BOM,
using the following command:
notepad C:\staging\generate-manifest.ps1
Create the following script:
$mftFilename = "custom.mft"
$imageVersion = 1907
(Note: This can be any 16-bit integer)
6
Chapter 2
Creating a corporate image