VMware Cloud Community
Aslham
Contributor
Contributor

PowerCli Registering VMs with "Moved it" Option on First Power On

Hi,

I'm looking for params to set "Move it" option after VM registering on Host.

Registring is done with this command :

New-VM -VMFilePath "[mydatastore] SERVER01/SERVER01.vmx" -VMHost "VMHost01.local

On firt power on, i have prompt to choice if MV was Moved or Copied.

I'm looking for some option to start the VM with setting "Moved it" option on first power on.

Many thanks,

M.

2 Replies
vHaridas
Expert
Expert

Use below powercli command to answer "I moved it", before this you can also use start-vm to power on VM.

Get-VM VM-Name | Get-VMQuestion | Set-VMQuestion -Option “I moved it” -Confirm:$false



Thanks,

Haridas

Virtual Admin

Please consider awarding points for "Correct" or "Helpful" replies. Thanks....!!! https://vprhlabs.blogspot.in/
Aslham
Contributor
Contributor

Hi Haridas,

I tried it, the command don't like "I moved it" option.

Now this command is working.

Get-VM VM-Name | Get-VMQuestion | Set-VMQuestion -Option “button.uuid.movedTheVM” -Confirm:$false


Many Thanks for your support.

Aslham.

0 Kudos