
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.