Hi LucD, Thanks for your quick response. Testing in my "test" environment where I have some other PG names. When I run : $sourceVMhost = "esx08" $ipTabText = @' Range,PGName 172.3...
See more...
Hi LucD, Thanks for your quick response. Testing in my "test" environment where I have some other PG names. When I run : $sourceVMhost = "esx08" $ipTabText = @' Range,PGName 172.30.155,net-155 172.30.174,net-175 '@ $ipTab = @{} $ipTabText | ConvertFrom-Csv | %{ $ipTab.Add($_.Range,$_.PGName) } I get this error : Exception calling "Add" with "2" argument(s): "Key cannot be null. Parameter name: key" At line:19 char:5 + $ipTab.Add($_.Range,$_.PGName) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException Exception calling "Add" with "2" argument(s): "Key cannot be null. Parameter name: key" At line:19 char:5 + $ipTab.Add($_.Range,$_.PGName) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException Exception calling "Add" with "2" argument(s): "Key cannot be null. Parameter name: key" At line:19 char:5 + $ipTab.Add($_.Range,$_.PGName) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException Any advice? Regards Tyler