I have a freshly installed Windows 11 that isn't experiencing any errors or problems. All of my applications are working just fine.
I would like to move this installation to a different hard disk. For example, I bought a new, better SSD. I want to copy my system completely.
I found on the internet that there is a tool called DISM. It can help me with this task in three steps:
- Create a WIM image of the original partition
- Apply this image to the new drive
- Create EFI partition
I've found this guide. It completely describes these steps:
What is the most efficient, native way to image a Windows partition?
So I booted to the Windows installation DVD. Pressed Shift+F10.
Captured my old system with this command:
mkdir "D:\Temp"
Dism /Capture-Image /ImageFile:"D:\Base.wim" /CaptureDir:"C:" /Name:"Windows Backup" /Compress:Fast /ScratchDir:"D:\Temp" /EA /CheckIntegrity /Verify /NoRpFix
All drive letters are correct. I checked them because they're different after the reboot.
As far as the last four options go, they don't seem to matter!
Junction points are correct anyway https://rmprepusb.blogspot.com/2017/02/if-using-sysprep-and-dismimagex-to.html
I tried capturing and applying the image several times, adding a new options, with formatting the new drive. I still had the same problem.
The next step is disconnecting the old drive. Then rebooted to the installation DVD again.
I did this partitioning on my new drive:
diskpart
lis dis
clean
convert gpt
cre par efi size=500
for fs=fat32 quick
cre par pri
for fs=ntfs quick
Applying the new image file:
mkdir "C:\Temp
Dism /Apply Image /ImageFile:"G:\Base.wim" /Index:1 /ApplyDir:"C:" /ScratchDir:"C:\Temp" /EA /CheckIntegrity /Verify /NoRpFix
Creating an EFI partition
cd /d E:
mountvol Z: /s
BcdBoot C:\Windows /s Z: /f UEFI
The new system is booting correctly, but when I try to start most of the uwp applications (Snipping Tool, Terminal, Notepad, etc), it just says "This app can't open" like this.
And the funniest thing of all is that when I try to launch this application for the second time, it actually works! Windows somehow repairs itself, even without access to the internet.
However, this doesn't work for all apps; in some cases, it will open Microsoft Store, where you'll see the Reinstall button. Alternatively, a manual click on Repair in the app's settings will also do the trick.
Also, if the original system didn't have any sfc errors, the new one has a lot of them. Here is a log of the sfc /scannow https://gist.github.com/megapro17/8e025130eb2e2d670ad79d4ab1d550af
What am I doing wrong? Why does my system have errors after the restore?
