Appendix C. Essential Command-Line Utilities for Use with WSH
Command-line utilities provide some of the most powerful and useful features you'll find anywhere. Using command-line utilities, you often can replace dozens of lines of code with a few simple statements. As you explore Windows you'll find that hundreds of utilities are available and all of them can be run within your Windows scripts.
In this appendix, we've selected the top utilities that you may want to use. You'll find a quick reference for commands as well as detailed entries on command usage and syntax. All examples show command-line and Windows script syntax.
ARP
ARP -a [inet_addr
] [-Nif_addr
] ARP -dinet_addr
[if_addr
] ARP -sinet_addr eth_addr
[if_addr
]
| Sets the physical MAC address in hexadecimal format, such as HH-HH-HH-HH-HH-HH where H is a hexadecimal value from 0 to F. Each network adapter card has a built-in MAC address. |
| Sets the IP address of the interface whose address translation table should be modified. If you don't specify an address, the first available interface is used. |
| Sets an Internet address. |
| Displays current ARP entries. |
| Deletes the specified entry. |
| Same as |
| Displays the ARP entries for the network interface specified by |
| Adds the host and associates the Internet address |
Details:
ARP displays and modifies the ...
Get Microsoft® PowerShell, VBScript and JScript® Bible now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.