Not sure if this is correct place to post this question.
I have two of the above systems. having set one up I proceeded to take a system image, booting into WinPE and capturing the image using DISM as follows;
dism /capture-image /imagefile:%directory%install.wim /capturedir:c:\ /compress:max /name:"img" /scratchdir:c:\recycler\scratch
where %directory% is a network location, now what I want to do is to use this image on the other system, so again I booted to WinPE and ran the following commands.
DISKPART
SEL DISK 0
CLEAN
CONVERT GPT
CREATE PART EFI SIZE=100
FORMAT FS=FAT32 QUICK OVERRIDE
ASSIGN LETTER=Y:
CREATE PART MSR SIZE=15
CREATE PART PRIMARY
FORMAT FS=NTFS QUICK OVERRIDE LABEL="OS"
ASSIGN LETTER=C:
SHRINK DESIRED=450
CREATE PART PRIMARY
FORMAT FS=NTFS QUICK OVERRIDE
SET ID=de94bba4-06d1-4d40-a16a-bfd50179d6ac
ASSIGN LETTER=R:
EXIT
dism /apply-image /imagefile:%directory%\install.wim /index:1 /applydir:c:\ /scratchdir:c:\recycler\scratch
rmdir c:\recycler\scratch /q
c:\windows\system32\bcdboot.exe c:\windows /s y:
Problem is that the bcdboot command returns the error "unable to execute file"!
I have tried various things including bcdboot.exe c:\windows /s :y /f UEFI
bcdboot.exe c:\windows /s :y /f all
But no luck, does anyone have an idea what is going wrong.
Thanks in advance
Fug