Sysprep
Microsoft guide: MS Learn
To use sysprep open CMD and go to the location of the sysprep EXE:
%WINDIR%\system32\sysprep\sysprep.exe
Then you can uses the /generalize command and select the options from the options box that appears or use the following command to ready the VM to be shutdown before cloning the VM:
%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe