Service Manual

Prerequisites to capture and deploy an
operating system
When capturing an operating system image by using capture media task sequence, ensure that the FODPacks folder is not
present in the C drive. If there is any FODPacks folder, delete the folder.
When you deploy an operating system image to the client by using a task sequence, the size of the wim file that is captured
using the capture media and the size of the used space of drive C in the reference device put together must be less than the
capacity of drive C.
For example, if the size of the wim file that is captured from reference device is 8 GB, the size of the used space in the drive
C is 17 GB. You can then deploy the wim file only if the capacity of operating system drive is greater than 25 GB.
You must create cmd scripts execute-DEW-script.cmd and Task-sequence-dew-script.ps1 before you create a task
sequence to deploy Windows reference image.
1. Create a text file with name execute-DEW-script and copy the following content to the file:
%Windir%\System32\WindowsPowerShell\v1.0\powershell.exe -command Set-
ExecutionPolicy Unrestricted
%Windir%\System32\WindowsPowerShell\v1.0\powershell.exe "C:\DEW_Temp\Task-sequence-
dew-script.ps1"
2. Save the text file in the SCCM Share DEW folder with name execute-DEW-script.cmd.
3. Create a text file with name Task-sequence-dew-script and copy the following content to the file:
#C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Set-ExecutionPolicy -
ExecutionPolicy Unrestricted
#Get GUID
$id = Get-WmiObject -Class Win32_Volume |Where-Object {$_.Name -like "C:\DEW\"} |
Select-Object -property "DeviceID"
#Set-Volume -UniqueId $test.DeviceID -NewFileSystemLabel DEW_VOLUME`
#formatting DEW volume
Format-Volume -Path $id.DeviceID -FileSystem NTFS -Force -Full
$service = "DEWSERVICE"
Set-Service -Name $service -StartupType Disabled
New-Item -path 'C:\DEW\DEW_VOLUME' -ItemType Directory
New-Item C:\DEW\DEW_VOLUME\DEW.txt
Set-Content C:\DEW\DEW_VOLUME\DEW.txt 'DEW_PARTITION'
4. Save the text file in the SCCM Share DEW folder with name Task-sequence-dew-script.ps1.
NOTE:
For better performance during imaging, Dell Technologies recommends that the total size of the wim file and the
used space is 1 GB less than the size of drive C.
5
54 Prerequisites to capture and deploy an operating system