Install-PreReqs.ps1 - Missing closing ')' in expression.

524
1
10-04-2019 06:16 AM
CliveSwan
Occasional Contributor II

greetings,

I have just started using the PowerShell Automated Base Deployment, and I am updating the configuration files.

I have got an odd error when updating the Install-PreReqs.ps file.

The error is:

Install-Prereqs.ps1 -ServerMachines ["serverName"-ModuleSourcePath ["Path\"]

Param(
    [System.Array]  << Error at the bracket after .Array
    $ServerMachines,

    [System.String]
    $ModuleSourcePath
) << Error at the closing ")"

This is the ESRI code, don't understand the error??

Regards,

Clive

0 Kudos
1 Reply
ChrisAdams
Esri Contributor

Replace the brackets with curly braces:

Param{
[System.Array],
$ServerMachines

[System.String]
$ModuleSourcePath
}

0 Kudos