Help with script to team NICs and assign IP in Win7 SP1

Hi All,

I have the following Power Shell script to team 2 NICs and assign IP, Gateway and DNS server:

# Create TEAM1, by binding 'Ethernet' and 'Ethernet 2' NICs.

New-NetLbfoTeam -Name TEAM1 -TeamMembers "LAN #1","LAN #2" -TeamingMode SwitchIndependent -LoadBalancingAlgorithm Dynamic -Confirm:$false

# 20 second pause to allow TEAM1 to form and come online.

Start-Sleep -s 20

# Configure static IP Address, Subnet, Default Gateway, DNS Server IPs to newly formed TEAM1 interface.

New-NetIPAddress InterfaceAlias "TEAM1" IPAddress 10.221.27.32 PrefixLength 24 -DefaultGateway 10.221.27.1
Set-DnsClientServerAddress -InterfaceAlias TEAM1 -ServerAddresses 10.221.103.1 

I am trying to run the script in Windows 7 but I am getting the error that the cmdlets do not exist.  I fear that this is not possible to do with PS in Win7.  Is there a way to use PS in Win7 to accomplish this?

If not, can this be done in Win7 with any other scripting language?  I have done some research but haven't had any luck.

Thanks in advance for any help.

Kind regards,

Ken



  • Edited by Deeciple 13 hours 11 minutes ago
March 24th, 2015 1:57pm

If the adapter vendor supports teaming they will have delivered a utility to create the teams.  The CmdLets are supported only for Windows 8/2012

Free Windows Admin Tool Kit Click here and download it now
March 24th, 2015 3:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics