2 Replies Latest reply on Aug 19, 2019 11:37 PM by ganapa2000

    The string is missing the terminator: ".

    ganapa2000 Hot Shot

      Hi,

       

      I am getting the below error from the attached script, please help

       

      At D:\ESXi_Info1.ps1:519 char:74

      + ... ta exported to" ($outputFile + ".xlsx") "file" -ForegroundColor Green

      +                                                  ~~~~~~~~~~~~~~~~~~~~~~~~

      The string is missing the terminator: ".

      At D:\ESXi_Info1.ps1:293 char:24

      +         if ($Hardware) {

      +                        ~

      Missing closing '}' in statement block or type definition.

      At D:\ESXi_Info1.ps1:257 char:39

      +     foreach ($esxihost in $vHostList) {

      +                                       ~

      Missing closing '}' in statement block or type definition.

      At D:\ESXi_Info1.ps1:1 char:27

      + function Get-ESXInventory {

      +                           ~

      Missing closing '}' in statement block or type definition.

          + CategoryInfo          : ParserError: (:) [], ParseException

          + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString