Dell Latitude 5280 Managing Windows-based Wyse Thin Clients using System Cente - Page 52

Prerequisites to capture and deploy an operating system

Page 52 highlights

5 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, then you can deploy the wim file only if the capacity of operating system drive is greater than 25 GB. 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-dewscript.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\"} | SelectObject -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: It is recommended that the size of the wim file and the used space put together is 1 GB less than the size of drive C for better performance during imaging. 52 Prerequisites to capture and deploy an operating system

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59

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, then you can deploy the wim file only if the capacity of operating system drive is greater than 25 GB.
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:
It is recommended that the size of the wim file and the used space put together is 1 GB less than the size of drive C for
better performance during imaging.
5
52
Prerequisites to capture and deploy an operating system