VMware Cloud Community
Petersaints
Enthusiast
Enthusiast

SRM 8.5 pre power on step command

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.

Petersaints_1-1699716176259.png

 

Petersaints_0-1699715966742.png

Can anyone help?

Thanks.

Regards.

Reply
0 Kudos
0 Replies