Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Or condition for -netadaptername parameter in new-vmswitch cmdlet

$
0
0
Hello,
I'm trying create a new vmswitch using the new-vmswitch cmdlet and -netadaptername parameter.  
I need to set the parameter to either "Ethernet" or "Ethernet 2" as they are the only two valid values and it needs to be one or the other, not both.  
I'm having trouble crafting the "or" statement for this.  "Ethernet" or "Ethernet 2"???
new-vmswitch-name"internet"-ComputerName"srv2"-netadaptername"Ethernet"

Viewing all articles
Browse latest Browse all 6937

Trending Articles