# encoding: utf-8
# api: powershell
# title: PowerCLI error report
# description: Generating error report bundle for VMware PowerCLI / vSphere
# version: 0.1
# type: script
# license: CC0
# x-poshcode-id: 2019
# x-archived: 2010-07-26T15:33:50
#
#
$moveVmScript = {
Connect-VIServer yourVCenterServer
Move-VM WinXP -Location yourDestinationHost
}
$ moveVmScript | Get-ErrorReport -ProblemScriptTimeoutSeconds 120 -ProblemDescription "An error is returned by Move-VM. The operation should be successful. The same can be done via the vClient." -Destination 'D:\bug report' –DontIncludeServerLogs