Hi
I'm hoping someone can give me some pointers on a particular issue i'm facing with a script i've written.
Ideally the script will form part of an MDT task sequence to build and configure Hyper-V hosts but I need to get it working first!
Essentially I want the script to configure a hyper-v host with all pNIC's configured in a team but I'm strugging on how to acheive this.
I've done:
$NICs=Get-NetAdapter -Physical
Which correctly lists the pNIC's however what I want the script to then do is for each pNIC found pass that to the following:
New-NetLbfoTeam -Name PhysicalTeam -TeamingMode SwitchIndependent -LoadBalancingAlgorithm Dynamic -TeamMembers "each physical NIC found on the server"
I know I probably need something like a foreach-object ($NIC in $NICs) statement after the Get-NetAdapter but I cant get my head around how best to acheive this
Thanks in advance