Reference for Win32_IP4PersistedRouteTable
|
|
Category (Kategorie): Networking
Description (Beschreibung): The Win32_IP4PersistedRouteTable WMI class represents persisted IP routes. By default, the routes added to the routing table are not permanent. Rebooting the computer clears the routes from the table. However, the following Windows NT command makes the route persist after the computer is restarted:
route -p add
Persistent entries are automatically reinserted in the route table each time the route table is rebuilt. Windows NT stores persistent routes in the registry. This class is only applicable to IP4 and does not address IPX or IP6. An entry can be removed through the method call SWbemServices.Delete (in the Scripting API for WMI) or IWbemServices::DeleteInstance (in the COM API for WMI). This class was added for Windows 2003 Server.
Availability (Verfügbarkeit):
Sample Code (Beispiel):
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_IP4PersistedRouteTable")
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Next
Links:
Link zur Original-Microsoft-Dokumentation
www.IT-Visions.de, (C) Dr. Holger Schwichtenberg
|