Are you upgrading to a faster M.2 SSD or building a completely new PC? Don't waste hours reinstalling Windows 11/10, drivers, and all your applications from scratch!
In this step-by-step tutorial, I will show you the ultimate IT Pro method to clone your entire Windows Operating System to a new SSD and boot it on a completely different motherboard—without using ANY paid 3rd-party software like Macrium Reflect, Acronis, or AOMEI. We will use native Windows command-line tools (CMD) for a flawless, 100% clean bare-metal OS migration.
💻 COMMAND EXPLANATION: The "Bare-Metal" Clone Process
Before we move the OS, we need to prepare the new SSD and use a powerful, multi-threaded command to clone the data perfectly. Here is exactly what these commands do:
1. Disk Preparation (The diskpart commands)
We use the native diskpart tool to wipe the new drive and build the correct partition structure for a modern UEFI motherboard.
clean: Wipes the entire destination drive (Disk 1). Warning: This destroys all data on the target drive!
convert gpt: Converts the disk to GUID Partition Table (GPT), which is strictly required for modern UEFI boot and Windows 11.
Creating Partitions: We create a 100MB FAT32 EFI partition (assigned letter S:) to store the bootloader, and a primary NTFS partition (assigned letter W:) to hold the actual Windows OS and your data.
2. The Ultimate robocopy Command
Why don't we just copy and paste? Because Windows will block you with "Access Denied" errors, and regular copying ruins file permissions. We use this specific robocopy command to bypass all restrictions and clone the drive byte-for-byte:
robocopy C:\ W:\ /e /b /copyall /xj /mt:16 /xd "System Volume Information" "$RECYCLE.BIN" /xf pagefile.sys hiberfil.sys swapfile.sys dumpstack.log /r:0 /w:0
Breaking down the magic flags:
C:\ W:\ 👉 Tells the system to copy everything from the old OS drive (C:) to the new SSD (W:).
/e 👉 Copies all subdirectories, including the empty ones, keeping the exact folder structure.
/b 👉 The most important flag! Copies files in "Backup Mode". This bypasses file and folder security permissions. Without this, Windows will block you from copying critical system files.
/copyall 👉 Copies ALL file information: Data, Attributes, Timestamps, Security (NTFS ACLs), and Owner info. This ensures the new OS acts exactly like the old one.
/xj 👉 Excludes junction points. This prevents the command from getting trapped in an infinite loop (especially in the AppData folders).
/mt:16 👉 Enables Multi-Threading with 16 threads. This forces your CPU to copy 16 files simultaneously, utilizing your SSD's maximum speed and cutting the cloning time in half!
/xd ... & /xf ... 👉 Excludes (ignores) system-specific hidden folders (like the Recycle Bin) and massive memory dump/hibernation files (pagefile.sys, hiberfil.sys). These files are specific to the old hardware and will just waste gigabytes of space on the new SSD. Windows will automatically rebuild fresh ones on the new PC.
/r:0 /w:0 👉 Sets Retries to 0 and Wait time to 0. If a file is completely locked or corrupted, it skips it immediately instead of pausing the entire cloning process for a million retries.
⚠️ CRITICAL WARNING / DISCLAIMER (READ BEFORE PROCEEDING): ⚠️
This is an advanced technical tutorial. The methods shown involve low-level disk formatting (diskpart), modifying the core Windows Registry, and executing system-level commands.
DATA LOSS RISK: If you select the wrong disk number or type the wrong command, you WILL permanently wipe your entire hard drive and lose all your personal data. There is no undo button in CMD.
PROCEED AT YOUR OWN RISK: This video is for educational purposes only. I am NOT responsible for any data loss, bricked drives, unbootable systems, or hardware damage that may occur from following these steps.
MANDATORY STEP: ALWAYS BACK UP your important files to a separate external drive BEFORE typing a single command. If you are not comfortable with the Command Prompt, please use a beginner-friendly 3rd-party GUI tool instead.
What you will learn in this video:
How to bypass the "Black Screen" and "Inaccessible Boot Device" errors.
The exact CMD commands to clone your OS byte-for-byte.
How to rebuild the EFI Bootloader for a completely different motherboard.
The secret Registry fix to prevent Disk Signature collisions.
Timestamps:
00:00 Preparation
00:52 Enter Audit Mode
01:09 Sysprep generalization
01:19 Boot from a Windows installation USB
01:54 Create a partition
02:55 Clone OS
03:41 Boot into Windows from the new drive
04:18 Restore the user account
04:50 End
If you found this advanced method helpful, drop a LIKE, leave a comment if you have any questions, and SUBSCRIBE for more deep-dive Windows system tutorials!
Thanks for watching,
Meink WinLab
#CloneWindows11 #MoveOS #No3rdPartyTools #Windows1126H1 #Windows1125H2 #Robocopy #MeinkWinLab #TechTutorial #PCBuild #BareMetalRecovery #WindowsDeployment #ITPro #FixBSOD #NVMe