PoshCode Logo PowerShell Code Repository

PowerCLI error report (modification of post by view diff)
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/2019"></script>download | new post

Generating error report bundle for VMware PowerCLI / vSphere

  1. $moveVmScript = {
  2.         Connect-VIServer yourVCenterServer
  3.         Move-VM WinXP -Location yourDestinationHost
  4. }
  5. $ 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

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me