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