BGONZALES_ASH
Contributor
Contributor

Adjusted a couple lines and this is what comes up now.. Thanks Luc!

PowerCLI C:\temp> .\test_323.ps1

At C:\temp\test_323.ps1:3 char:28

+ foreach($vmName in $VMList)

+                            ~

Missing statement body in foreach loop.

At C:\temp\test_323.ps1:17 char:5

+     }

+     ~

Unexpected token '}' in expression or statement.

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

    + FullyQualifiedErrorId : MissingForeachStatement

Reply
0 Kudos