deploy vm from template in hyper-v

Hi all,

we have hyper-v 2012 server ,we want to add automation for creating vm using template by powershell script, i searched for that but i got and i used below command in powershell,

(import-vm -path “d:\vmbackup\aiindlcj-012\virtual hard disk\aiindchn912.vhdx” -copy -generatenewid) but its says Guid should contain 32 digits with 4 dashes.


can u help on this ,