Download the from Microsoft, create a bootable USB drive, and install Windows fresh on the new drive.

Use software like or Samsung Data Migration (if you bought a Samsung SSD) to create an exact copy of your old drive onto the new one.