VirtualBox UUID already in use

I am playing around with using VirtualBox to run virtual machines and I ran into an issue trying to use a clone (copy) of a VDI file. The VDI file is the hard disk drive, and it has a unique identifier in it (UUID). Trying to use a clone of one gives you the error: UUID of the hard disk is already existing in the media registry.

To solve it, you need to run the following command to change the UUID of the file:

VBoxManage.exe internalcommands sethduuid "[VDI file]"

Example:

"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" internalcommands sethduuid "AppFabric.vdi"