The WMI example listed above works fine once WMI is installed. Unfortunately I am not familiar at all with WMI. Can anyone show me how to get the default gateway using WMI?