Retrieve OVA OVF config objects using Get-OvfConfiguration

Use below scripts to extract ova/ovf config


 $VIServer = "Vcenterserver1.local.com"

$VIUsername = "administrator@vsphere.local"

$VIPassword = "Password1"

$viConnection = Connect-VIServer $VIServer -User $VIUsername -Password $VIPassword

$ovfPath ="C:\Users\Administrator\Downloads\Test-1-vcenter.ova"

$ovfconfig = Get-OvfConfiguration -Server $viConnection $ovfPath

$ovfconfigHashTable = $ovfconfig.ToHashTable()

No comments:

Post a Comment

how to unlink a NIC from a esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class...