Passing Hashes to a Powershell function problem

后端 未结 2 790
时光取名叫无心
时光取名叫无心 2021-01-28 17:18

I must be missing something. i have to variables: $var1 and $var2

$var1 | gm 
 TypeName: System.Collections.Hashtable

Each of them has IP and Por

2条回答
  •  时光取名叫无心
    2021-01-28 18:10

    I've had problems with my functions when calling them with parenthesis. Have you tried calling your function like so?

        CompareData -data1 $var1 -data2 $var2
    

提交回复
热议问题