2 based
on the operating system features you have installed.
Notice the hierarchy of contexts displayed in Figure 6.2. To access the IP context at the command
line, you must type NetSH Interface IP and then the command you wish to use. Likewise, if you
want to access the 6To4 context, you must type NetSH Interface IPv6 6To4 at the command line.
Typing any context by itself (or followed by a question mark (?) or Help) displays the list of commands
for that context.
SCRIPTING NETWORKING SOLUTIONS WITH THE NETSH UTILITY 167
Figure 6.2
Obtain a list of helper
DLLs for your setup
using the NetSH Show
Helper command.
Type a command to see the list of subcommands or the instructions for using that command.
Type a subcommand to see the instructions for using that subcommand. For example, to discover
how to add a new IP address, type NetSH Interface IP Add Address at the command prompt
and press Enter. You??™ll see a help display explaining the command, as shown in Figure 6.3. Figure 6.3
shows the Server Core view of the help for this command. If you??™re familiar with previous versions
of Windows, you??™ll notice that the Server Core help is an improvement.
Pages:
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438