You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across the same issue as well and was able to overcome by adding a closing bracket on Line 165 as so: Write-PowerManagementLogMessage -Type INFO -Message "Attempting to connect to VMware Cloud Foundation to gather system details."}
and then I inserted below on line 166 and 167 : Catch { }
Code of Conduct
VMware Cloud Foundation
5.1.1
PowerShell Version
Windows Powershell 7.4
PowerCLI Version
13.3.0.24145081
Module Version
1.5.0.1000
PowerVCF Version
2.4.1.1000
Guest Operating System
Windows Server 2019
Environment Details
vanilla holodeck 5.1.1 deployment
Description
Running the PowerManagement-ManagementDomain.psi script results in a PowerShell ParserError
Lines 461 and 747 contain { and are duplicate lines causing brackets to mismatch
Lines 741 and 744 also appear to be unnecessary duplicate lines
Error or Debug Output
https://gist.github.com/goodnowm/2f3f143fef8ef186633e7077846a2f11
Expected Behavior
Shutdown the management domain
Actual Behavior
PowerShell ParserError
Steps to Reproduce
Using step 6 from the Usage documentation results in a PowerShell ParserError
Log Fragments and Files
No response
Screenshots
References
No response
The text was updated successfully, but these errors were encountered: