Creating and restore image using the built-in features in Windows
From Tech-Wiki
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:\