Is it possible to script adding an ipaddress to a nic card in Win2000? 
Author Message
 Is it possible to script adding an ipaddress to a nic card in Win2000?

Thanks in advance.


Sat, 17 Jul 2004 03:19:12 GMT  
 Is it possible to script adding an ipaddress to a nic card in Win2000?
Try Netsh.exe

C:\>netsh /?

Usage: netsh [-a AliasFile] [-c Context] [-r RemoteMachine]
             [Command | -f ScriptFile]

The following commands are available:

Commands in this context:
?              - Displays a list of commands.
add            - Adds a configuration entry to a list of entries.
bridge         - Changes to the `netsh bridge' context.
delete         - Deletes a configuration entry from a list of entries.
diag           - Changes to the `netsh diag' context.
dump           - Displays a configuration script.
exec           - Runs a script file.
help           - Displays a list of commands.
interface      - Changes to the `netsh interface' context.
ras            - Changes to the `netsh ras' context.
routing        - Changes to the `netsh routing' context.
set            - Updates configuration settings.
show           - Displays information.

The following sub-contexts are available:
 bridge diag interface ras routing

To view help for a command, type the command, followed by a space, and then
 type ?.

This will save an IP configuration and then you can reload it (with
changes).

Mike


Quote:
> Thanks in advance.



Sun, 18 Jul 2004 10:34:31 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Changing NIC card speed,duplex,etc. using WMI

2. Change NIC Card's IP Address in Win2k

3. Change NIC Card's IP Address in Win2k

4. Disable/Enable a NIC in Win2000

5. How to get the NIC address of a ethernet card

6. How to with 2 NIC cards

7. Add IP to NIC

8. How can I programmatically add a website to IIS 5.0 on Win2000

9. VB, Win2000 and printer port I/O: possible???

10. Add another IP address to a network card

11. Adding WINS setting to Network card

12. Add IP addresses to Net Cards?

 

 
Powered by phpBB® Forum Software