Wednesday, July 23, 2014

vSphere PowerShell CLI

Allow Remote Signed: Set-ExecutionPolicy RemoteSigned

ex.
export ova filter by ResourcePools

#Load the VMWare PowerCLI SnapIn
Add-PSSnapin vmware.vimautomation.core

#List VMWare cmdlets
#Get-Command -PSSnapin VMware.*


Connect-VIServer temp.domain.local -WarningAction SilentlyContinue

$VMS = Get-ResourcePool -Name "iSCSI-VM-Offline_Datastore" | get-vm

foreach ($VM in $VMS){

    echo "export $VM to ova file"

    Export-VApp -Destination "E:\iSCSI-VM-Offline_Datastore\" -VM $VM  -Format OVA

}

ex.
Backup ova
http://idledeveloper.com/tag/export-vapp/


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout