I’m writing here because every time I need to set up a bunch of virtual machines, I have to go back and look up where to find the Sysprep tool and how to use it.
Windows 2008, Windows 2008 R2, Windows 7:
C:\Windows\System32\sysprep\sysprep.exe
Windows 2003: