Need Powershell Script for NIC configuration
Posted on 2011-02-23
I'm looking for a powershell script that will configure a Windows Server 2008 NIC.
The script should prompt me to enter the nic configuration information, such as IP address, subnet mask, gateway, primary dns, secondary dns, wins, and so forth. The script should then configure the nic with the input that I provided. Ideally, it would then issue an automatic reboot of the server.
I have a lot of virtual servers that are being moved to a new subnet. Once they are moved to the new subnet, I'm going to access the machine using the VMware console. I'm then going to log in and reconfigure the nics. This is why I ask for help with a script.
Any help or useful suggestions will be greatly appreciated.