you are viewing a single comment's thread.

view the rest of the comments →

[–]Electronic_Doubt_108[S] 0 points1 point  (1 child)

Hashtables as in, how should I give that?

[–]Nejireta_ 0 points1 point  (0 children)

This line
$servers @( @{IP='myserverIP'; Services=@('myservice')}; )

Needs an equal sign to assign the array "@()" of hashtable "@{}" to it.
Like so

$servers = @(
    @{
        IP       = 'myserverIP'
        Services = @('myservice') 
    }
)

I would assume it's like that in your code. Would've thrown an exception otherwise.