So I have found an interesting side effect.
I am using this script to help me keep track of a migration from a standard switch, to a dvSwitch.
What is happening is that when I migrate it to the dvSwitch, the script will not return the NetworkName any more.
If I just run the Get-Networkapater it does return a value. Not sure how to adjust the script.
Tony