Installation, Storage, and Compute with Windows Server 2016 — Question 278
You have a Hyper-V host named Server1 that runs Windows Server 2016. Server1 hosts a virtual machine named VM1. VM1 is in a workgroup. VM1 is currently in a running state.
You need to create 10 copies of VM1 on Server1 in the least amount of time possible.
Which cmdlets should you use?
Answer options
- A. Stop-VM, and then Import-VM
- B. Export-VM, and then Import-VM
- C. Checkpoint-VM, and then New-VM
- D. Copy-VMFile, and then New-VM
Correct answer: B
Explanation
The correct answer is B, as exporting a VM creates a backup that can be imported, making it the quickest way to create multiple copies. Option A is incorrect because stopping the VM interrupts its operation, which is not necessary for this task. Option C does not create complete copies of the VM, and Option D involves copying files manually, which is not as efficient as using the export and import cmdlets.