Hey /r/Powershell, Looking at an automated deployment for about 50 sites. I’m doing this:
The script gets an input from the user which is where the following variables come from
$Select1, $Select2, Select3
The script then does this, renames NICs and creates a team and puts one in standby.
$TeamMember1 = Rename-NetAdapter -Name $Select1 -NewName "Member1" $TeamMember2 = Rename-NetAdapter -Name $Select2 -NewName "Member2" $Mgmt = Rename-NetAdapter -Name $Select3 -NewName "Mgmt"
It then creates a team based off the newly named NICs However this line does not work correctly.
New-NetLbfoTeam -Name $NicTeamName -TeamMembers $TeamMember1, $TeamMember2 -Confirm:$false Set-NetLbfoTeamMember -Name $TeamMember2 -AdministrativeMode Standby -Confirm:$false
Am I passing the members incorrectly into the cmdlet, or do you see something I’m doing incorrectly?
submitted by /u/Cr82klbs
[link] [comments]
The post NIC Teaming appeared first on How to Code .NET.