Question: how to do sysprep on windows 2012 r2?
Answer: Change the working directory to System32 by typing cd c:\windows\system32\sysprep and pressing Enter. To run sysprep with the standard GUI options, but also the /mode:vm switch, type sysprep.exe /oobe /generalize /shutdown /mode:vm and press Enter.