2 Replies Latest reply on May 18, 2009 2:19 PM by alanrenouf

    Report into MS Word script problem

    max2479 Hot Shot

       

      trying to use this script  http://communities.vmware.com/docs/DOC-7070

       

       

      param( string $VIServer )

       

      if ($VIServer -eq "powershell.exe Report.ps1 vc1"){

      Write-Host

      Write-Host "Please specify a VI Server name eg...."

      Write-Host " powershell.exe Report.ps1 MYVISERVER"

      Write-Host

      Write-Host

      exit

       

      -


       

      vc1 is my virtual center

       

      -


       

      debug message:

       

      Microsoft Word Detected

      Office Web Components Detected

      Connecting to VI Server

      The argument cannot be null or empty.

       

       

      where is my mistake?