Is Set-VMNICConnection missing from R2 SP1?

May 28, 2011 at 9:10 PM


I'm trying to create and start a new VM but my VM starts up with the network disconnected. Add-VMNIC adds a network adapter but I don't no how to set this to use the host's local area nework. It looks like Set-VMNICConnection might be the one but it gives me not found:

The term 'set-vmnicconnection' is not recognized as the name of a cmdlet, function, script file, or operable program. C
heck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:20
+ set-vmnicconnection <<<<
    + CategoryInfo          : ObjectNotFound: (set-vmnicconnection:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Any suggestions?



May 31, 2011 at 5:08 PM

My problem of how to use the host's network switch is solved, I was using the wrong virtual switch name when I called Add-VMNic.