1

Closed

Remove-VMNIC function - Renamed not completed properly

description

From: Matt Meredith
To: James O'Neill
Subject: Renamed Remove-VMNIC function in PSHYPERV script
 
I think you renamed the Remove-VMNIC function. When passing in an array of NICs, I was getting errors saying
 
“The term 'Remove-VMNICConnection' is not recognized as a cmdlet, function, …”
Line 1151 currently is: if ($NIC -is [Array]) {$NIC | ForEach-Object {Remove-VMNICConnection -VM $VM -NIC $_ } }
should be: if ($NIC -is [Array]) {$NIC | ForEach-Object {Remove-VMNIC -VM $VM -NIC $_ } }
Closed Jan 26, 2009 at 8:02 PM by jamesone

comments