To copy a Hyper-V to a different person is not the easies thing in the world. It requires a lot of disk space and changing names and removing personal account information on the VM that is copied.
Before copy the VM - clean up anything you can inside - just for the purpose of not doing it two times. It could easily be that you have a lot of stuff that is not needed anymore, and why not get rid of it right now.
Then the VM needs to be shut down before starting.
We use Hyper-V Manager for the process.
- Clean up whatever you can in the VM before exporting it.
- Close down the VM - (ex. shut down from within the VM)
- Example - the VM is located in C:\Hyper-V\MyDeveloperVM
- Fysical copy the VM to a different location. (This is a copy that can be deleted later) : ex. to: D:\Hyper-V-Backups\MyDeveloperVM
- Hyper-V Manager: Import Virtual Machine - point out the location of the backup : D:\Hyper-V-Backups\MyDeveloperVM
- Import Virtual Mcahine: Now the VM should appear on the List - Click Next
- Import Virtual Mcahine:Chose Import Type: "Copy The Virtual Machine (Create a new unique ID)"
- Import Virtual Mcahine: Click "Store the virtual machine in a different location"
- In this case I want to make a copy to the same backup folder
- Virtual Machine configuration folder: D:\Hyper-V-Backups\MyDeveloperVM
- Checkpoint Store: D:\Hyper-V-Backups\MyDeveloperVM
- Smart Paging Folder: D:\Hyper-V-Backups\MyDeveloperVM
- Virtual Harddisk: D:\Hyper-V-Backups\MyDeveloperVM
- Rename harddisk if you want - before turning on the VM
- Turn on VM and rename Windows - restart
- Now all personal accounts needs cleaned away
- Logout of all browsers and delete browsing history and passwords and cookies
- Remove credentials from Credential Manager in Control Panel: Control Panel\All Control Panel Items\Credential Manager