Information Technology Reference
In-Depth Information
' takes a UTC date string and displays it in a friendlier format
Function WMIDateStringToDate(utcDate)
WMIDateStringToDate = CDate(Mid(utcDate, 5, 2) & "/" & _
Mid(utcDate, 7, 2) & "/" & _
Left(utcDate, 4) & " " & _
Mid (utcDate, 9, 2) & ":" & _
Mid(utcDate, 11, 2) & ":" & _
Mid(utcDate, 13, 2))
End Function
How It Works
One of the first steps you should take when troubleshooting a network connectivity issue is to
get a snapshot of how your computer's TCP/IP connections are currently configured. Mistyping
a default gateway or subnet mask can create troublesome errors that even the most seasoned
of network professionals can overlook if they skip this simple step. Earlier client operating
systems like Windows 95 and Windows 98 offered winipcfg, a GUI utility that would provide a
snapshot of the current IP configuration; in NT, 2000, XP, and 2003 this has been replaced by
command-line tools and scripting solutions.
Using a Command-Line Interface
In addition to the syntax listed here, both netsh and ipconfig can display a smaller subset of IP
configuration information, and ipconfig can even be used to perform simple troubleshooting
tasks. From the netsh interface ip command, you can append the following commands to
display various IP addressing information:
show address : Displays IP address configuration only; no DNS or WINS info
show dns : Displays the configured DNS server addresses
show icmp : Displays ICMP statistics
show interface : Displays IP interface statistics
show ipstats : Displays IP statistics
show joins : Displays multicast groups joined
show wins : Displays the WINS server addresses
show /? : Displays all available views
See Also
￿
Chapter 9 for more on monitoring and troubleshooting
￿
Microsoft KB 169790: “How to Troubleshoot Basic TCP/IP Problems”
Search WWH ::




Custom Search