Information Technology Reference
In-Depth Information
Note The NetBIOS scope ID can no longer be configured via the GUI; it can only be configured via the
Registry or VBScript.
See Also
Microsoft TechNet: “Advanced Configuration” ( http://www.microsoft.com/
technet/prodtechnol/windowsserver2003/library/ServerHelp/
edf66ed4-a258-4d09-8d6f-60b0d95cfbcf.mspx )
1-16. Displaying TCP/IP Information
Problem
You want to display the current TCP/IP configuration of a Windows Server 2003 computer.
Solution
Using a Command-Line Interface
The following command displays configuration information for the local computer:
> netsh interface ip show config
As an alternative, you can also issue the following command:
> ipconfig /all
Note To view all of the output switches available for ipconfig , issue the following at the command line:
ipconfig /? .
Using VBScript
This code displays the TCP/IP configuration for the local computer.
' ------ SCRIPT CONFIGURATION ------
strComputer = "."
' ------ END CONFIGURATION ---------
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set nics = objWMIService.ExecQuery _
("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
Search WWH ::




Custom Search