I was told it is possible to copy your old hard drive onto a new hard drive without using any aftermarket software or hardware. Is this true and how can you do it?

thanks