Hello all,
Need to create a pre power step command so that the VM on the recovery site starts up with the network adapter disconnected.
I try the bellow one:
Get-VM -Name VM_NAME | Get-NetworkAdapter | where{$_.ConnectionState.Connected} | Set-NetworkAdapter -Connected:$false -Confirm:$false
I put the bellow powershell command, but when i test the recovery step i receive an error.
Can anyone help?
Thanks.
Regards.