Difference between revisions of "Creating and restore image using the built-in features in Windows"

From Tech-Wiki
Jump to: navigation, search
(Created page with "Category:Microsoft '''Back to Misc''' Create a Windows RE environment for emergency purpose reagentc /setreimage /path S:\Recovery\WindowsRE Registe...")
 
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
 
  dism /Capture-Image /ImageFile:"D:\fabrikam.wim" /CaptureDir:C:\ /Name:Fabrikam /ConfigFile:<configuration list>
 
  dism /Capture-Image /ImageFile:"D:\fabrikam.wim" /CaptureDir:C:\ /Name:Fabrikam /ConfigFile:<configuration list>
  
Configuration file
+
Configuration file contents:
  
 
  [ExclusionList]
 
  [ExclusionList]
Line 20: Line 20:
  
  
To restore an Image using DISM, boot into Windows PE then start diskpart
+
To restore an Image using DISM, boot into Windows PE then type the following commands in Diskpart
  
select disk 0
+
select disk 0
clean
+
clean
create partition primary size=3000 id=27
+
create partition primary size=3000 id=27
format quick fs=ntfs label="Recovery"
+
format quick fs=ntfs label="Recovery"
assign letter="R"
+
assign letter="R"
create partition primary size=300
+
create partition primary size=300
format quick fs=ntfs label="System"
+
format quick fs=ntfs label="System"
assign letter="S"
+
assign letter="S"
active
+
active
create partition primary
+
create partition primary
format quick fs=ntfs label="Windows"
+
format quick fs=ntfs label="Windows"
assign letter="C"
+
assign letter="C"
exit
+
exit
  
 
Then restore your image from network/usb drive using DISM:
 
Then restore your image from network/usb drive using DISM:
  
 
  dism /apply-image /imagefile:N:\Images\my-windows-partition.wim /index:1 /ApplyDir:C:\
 
  dism /apply-image /imagefile:N:\Images\my-windows-partition.wim /index:1 /ApplyDir:C:\

Latest revision as of 22:49, 9 June 2017

Back to Misc

Create a Windows RE environment for emergency purpose

reagentc /setreimage /path S:\Recovery\WindowsRE

Registers the location of a push-button reset image in an online or offline image

reagentc /setosimage /path R:\RecoveryImage /index 1

Create a system image

dism /Capture-Image /ImageFile:"D:\fabrikam.wim" /CaptureDir:C:\ /Name:Fabrikam /ConfigFile:<configuration list>

Configuration file contents:

[ExclusionList]
\BigFolder


To restore an Image using DISM, boot into Windows PE then type the following commands in Diskpart

select disk 0
clean
create partition primary size=3000 id=27
format quick fs=ntfs label="Recovery"
assign letter="R"
create partition primary size=300
format quick fs=ntfs label="System"
assign letter="S"
active
create partition primary
format quick fs=ntfs label="Windows"
assign letter="C"
exit

Then restore your image from network/usb drive using DISM:

dism /apply-image /imagefile:N:\Images\my-windows-partition.wim /index:1 /ApplyDir:C:\