I have the exact same problem when I add a vSphere Distributed Switch. The first switch I add in a PowerCLI session will give the "An item with the same key has already been added" error, although the switch seems to be created fine. All other switches I create in the same session don't give this error. See the attached screenshot for a complete session.
↧