ManagementObject 参数 WMI 一些参数(Win32_NetworkAdapterConfiguration)

来源:互联网 发布:2017淘宝黑搜还火吗 编辑:程序博客网 时间:2024/06/06 14:24
 
class Win32_NetworkAdapterConfiguration : CIM_Setting
{
boolean ArpAlwaysSourceRoute;
boolean ArpUseEtherSNAP;
string Caption;
string DatabasePath;
boolean DeadGWDetectEnabled;
string DefaultIPGateway[];
uint8 DefaultTOS;
uint8 DefaultTTL;
string Description;
boolean DHCPEnabled;
datetime DHCPLeaseExpires;
datetime DHCPLeaseObtained;
string DHCPServer;
string DNSDomain;
string DNSDomainSuffixSearchOrder[];
boolean DNSEnabledForWINSResolution;
string DNSHostName;
string DNSServerSearchOrder[];
boolean DomainDNSRegistrationEnabled;
uint32 ForwardBufferMemory;
boolean FullDNSRegistrationEnabled;
uint16 GatewayCostMetric[];
uint8 IGMPLevel;
uint32 Index;
uint32 InterfaceIndex;
string IPAddress[];
uint32 IPConnectionMetric;
boolean IPEnabled;
boolean IPFilterSecurityEnabled;
boolean IPPortSecurityEnabled;
string IPSecPermitIPProtocols[];
string IPSecPermitTCPPorts[];
string IPSecPermitUDPPorts[];
string IPSubnet[];
boolean IPUseZeroBroadcast;
string IPXAddress;
boolean IPXEnabled;
uint32 IPXFrameType[];
uint32 IPXMediaType;
string IPXNetworkNumber[];
string IPXVirtualNetNumber;
uint32 KeepAliveInterval;
uint32 KeepAliveTime;
string MACAddress;
uint32 MTU;
uint32 NumForwardPackets;
boolean PMTUBHDetectEnabled;
boolean PMTUDiscoveryEnabled;
string ServiceName;
string SettingID;
uint32 TcpipNetbiosOptions;
uint32 TcpMaxConnectRetransmissions;
uint32 TcpMaxDataRetransmissions;
uint32 TcpNumConnections;
boolean TcpUseRFC1122UrgentPointer;
uint16 TcpWindowSize;
boolean WINSEnableLMHostsLookup;
string WINSHostLookupFile;
string WINSPrimaryServer;
string WINSScopeID;
string WINSSecondaryServer;
};
 

The Win32_NetworkAdapterConfiguration class has the following properties.

ArpAlwaysSourceRoute
Data type: boolean
Access type: Read-only

If TRUE, TCP/IP transmits Address ResolutionProtocol (ARP) queries with source routing enabled on Token Ringnetworks. By default (FALSE), ARP first queries without source routing,and then retries with source routing enabled if no reply is received.Source routing allows the routing of network packets across differenttypes of networks.

ArpUseEtherSNAP
Data type: boolean
Access type: Read-only

If TRUE, Ethernet packets follow the IEEE 802.3Sub-Network Access Protocol (SNAP) encoding. Setting this parameter to1 forces TCP/IP to transmit Ethernet packets by using 802.3 SNAPencoding. By default (FALSE), the stack transmits packets in DIXEthernet format. Windows NT/Windows 2000 systems can receive bothformats.

Caption
Data type: string
Access type: Read-only

Description of the CIM_Setting object—a one-line string. This property is inherited from CIM_Setting.

DatabasePath
Data type: string
Access type: Read-only

Valid Windows file path to standard Internet database files (HOSTS,LMHOSTS, NETWORKS, PROTOCOLS). The file path is used by the WindowsSockets interface. This property is only available onWindows NT/Windows 2000 systems.

DeadGWDetectEnabled
Data type: boolean

If TRUE, dead gateway detection occurs. With thisfeature enabled, Transmission Control Protocol (TCP) asks InternetProtocol (IP) to change to a backup gateway if it re-transmits asegment several times without receiving a response.

DefaultIPGateway
Data type: string array
Access type: Read-only

Array of IP addresses of default gateways that the computer system uses.

Example: "192.168.12.1 192.168.46.1"

DefaultTOS
Data type: uint8
Access type: Read-only

Default Type Of Service (TOS) value set in the header of outgoing IPpackets. Request for Comments (RFC) 791 defines the values. Default: 0,Valid Range: 0 - 255.

DefaultTTL
Data type: uint8
Access type: Read-only

Default Time To Live (TTL) value set in the header of outgoing IPpackets. The TTL specifies the number of routers an IP packet can passthrough to reach its destination before being discarded. Each routerdecrements by one the TTL count of a packet as it passes through anddiscards the packets—if the TTL is 0 (zero). Default: 32, Valid Range:1 - 255.

Description
Data type: string
Access type: Read-only

Description of the CIM_Setting object. This property is inherited from CIM_Setting.

DHCPEnabled
Data type: boolean
Access type: Read-only

If TRUE, the dynamic host configuration protocol(DHCP) server automatically assigns an IP address to the computersystem when establishing a network connection.

DHCPLeaseExpires
Data type: datetime
Access type: Read-only

Expiration date and time for a leased IP address that was assignedto the computer by the dynamic host configuration protocol (DHCP)server.

Example: 20521201000230.000000000

DHCPLeaseObtained
Data type: datetime
Access type: Read-only

Date and time the lease was obtained for the IP address assigned tothe computer by the dynamic host configuration protocol (DHCP) server.

Example: 19521201000230.000000000

DHCPServer
Data type: string
Access type: Read-only

IP address of the dynamic host configuration protocol (DHCP) server.

Example: "10.55.34"

DNSDomain
Data type: string
Access type: Read-only

Organization name followed by a period and an extension thatindicates the type of organization, such as microsoft.com. The name canbe any combination of the letters A through Z, the numerals 0 through9, and the hyphen (-), plus the period (.) character used as aseparator.

Example: "microsoft.com"

DNSDomainSuffixSearchOrder
Data type: string array
Access type: Read-only

Array of DNS domain suffixes to be appended to the end of host namesduring name resolution. When attempting to resolve a fully-qualifieddomain name (FQDN) from a host only name, the system will first appendthe local domain name. If this is not successful, the system will usethe domain suffix list to create additional FQDNs in the order listedand query DNS servers for each

Example: "samples.microsoft.com example.microsoft.com"

DNSEnabledForWINSResolution
Data type: boolean
Access type: Read-only

If TRUE, the Domain Name System (DNS) is enabledfor name resolution over Windows Internet Naming Service (WINS)resolution. If the name cannot be resolved using DNS, the name requestis forwarded to WINS for resolution.

DNSHostName
Data type: string
Access type: Read-only

Host name used to identify the local computer for authentication bysome utilities. Other TCP/IP-based utilities can use this value toacquire the name of the local computer. Host names are stored on DNSservers in a table that maps names to IP addresses for use by DNS. Thename can be any combination of the letters A through Z, the numerals 0through 9, and the hyphen (-), plus the period (.) character used as aseparator. By default, this value is the Microsoft networking computername, but the network administrator can assign another host namewithout affecting the computer name.

Example: "corpdns"

DNSServerSearchOrder
Data type: string array
Access type: Read-only

Array of server IP addresses to be used in querying for DNS servers.

DomainDNSRegistrationEnabled
Data type: boolean
Access type: Read-only

If TRUE, the IP addresses for this connection areregistered in DNS under the domain name of this connection in additionto being registered under the computer's full DNS name. The domain nameof this connection is either set using the SetDNSDomain()method or assigned by DSCP. The registered name is the host name of thecomputer with the domain name appended. This property is new forWindows XP.

ForwardBufferMemory
Data type: uint32
Access type: Read-only
Qualifiers: Units(Bytes)

Memory allocated by IP to store packet data in the router packetqueue. When this buffer space is filled, the router begins discardingpackets at random from its queue. Packet queue data buffers are 256bytes in length, so the value of this parameter should be a multiple of256. Multiple buffers are chained together for larger packets. The IPheader for a packet is stored separately. This parameter is ignored andno buffers are allocated if the IP router is not enabled. The buffersize can range from the network MTU to the a value smaller than0xFFFFFFFF. Default: 74240 (fifty 1480-byte packets, rounded to amultiple of 256).

FullDNSRegistrationEnabled
Data type: boolean
Access type: Read-only

If TRUE, the IP addresses for this connection areregistered in DNS under the computer's full DNS name. The full DNS nameof the computer is displayed on the Network Identification tab in the System application in Control Panel. This property is new for Windows XP.

GatewayCostMetric
Data type: uint16 array
Access type: Read-only

Array of integer cost metric values (ranging from 1 to 9999) to beused in calculating the fastest, most reliable, or least expensiveroutes. This argument has a one-to-one correspondence with the DefaultIPGateway property. Windows 2000 only.

IGMPLevel
Data type: uint8
Access type: Read-only

Extent to which the system supports IP multicast and participates inthe Internet Group Management Protocol. At level 0 (zero), the systemprovides no multicast support. At level 1, the system may only send IPmulticast packets. At level 2, the system may send IP multicast packetsand fully participate in IGMP to receive multicast packets.

Value Meaning 0No Multicast1IP Multicast2IP & IGMP multicast (default)
Index
Data type: uint32
Access type: Read-only
Qualifiers: Key

Index number of the Windows network adapter configuration. The indexnumber is used when there is more than one configuration available.

InterfaceIndex
Data type: uint32
Access type: Read-only

Index value that uniquely identifies a local network interface. The value in this property is the same as the value in the InterfaceIndex property in the instance of Win32_IP4RouteTable that represents the network interface in the route table.

Windows XP and earlier:  The InterfaceIndex property is not available.
IPAddress
Data type: string array
Access type: Read-only

Array of all of the IP addresses associated with the current network adapter.

Example: "172.16.22.0"

IPConnectionMetric
Data type: uint32
Access type: Read-only

Cost of using the configured routes for the IP bound adapter and isthe weighted value for those routes in the IP routing table. If thereare multiple routes to a destination in the IP routing table, the routewith the lowest metric is used. The default value is 1. This propertyis new for Windows XP.

IPEnabled
Data type: boolean
Access type: Read-only

If TRUE, TCP/IP is bound and enabled on this network adapter.

IPFilterSecurityEnabled
Data type: boolean
Access type: Read-only

If TRUE, IP port security is enabled globallyacross all IP-bound network adapters and the security values associatedwith individual network adapters are in effect. This property is usedin conjunction with IPSecPermitTCPPorts, IPSecPermitUDPPorts, and IPSecPermitIPProtocols. If FALSE, IP filter security is disabled across all network adapters and allows all port and protocol traffic to flow unfiltered.

IPPortSecurityEnabled
Data type: boolean
Access type: Read-only
Qualifiers: Deprecated

If TRUE, IP port security is enabled globallyacross all IP-bound network adapters. This property is obsolete. Inplace of this property, you should use IPFilterSecurityEnabled.

IPSecPermitIPProtocols
Data type: string array
Access type: Read-only

Array of the protocols permitted to run over the IP. The list of protocols is defined using the EnableIPSecmethod. The list will either be empty or contain numeric values. Anumeric value of 0 (zero) indicates access permission is granted forall protocols. An empty string indicates that no protocols arepermitted to run when IPFilterSecurityEnabled is TRUE.

IPSecPermitTCPPorts
Data type: string array
Access type: Read-only

Array of the ports that will be granted access permission for TCP. The list of protocols is defined using the EnableIPSecmethod. The list will either be empty or contain numeric values. Anumeric value of 0 (zero)indicates access permission is granted for allports. An empty string indicates that no ports are granted accesspermission when IPFilterSecurityEnabled is TRUE.

IPSecPermitUDPPorts
Data type: string array
Access type: Read-only

Array of the ports that will be granted User Datagram Protocol (UDP)access permission. The list of protocols is defined using the EnableIPSecmethod. The list will either be empty or contain numeric values. Anumeric value of 0 (zero) indicates access permission is granted forall ports. An empty string indicates that no ports are granted accesspermission when IPFilterSecurityEnabled is TRUE.

IPSubnet
Data type: string array
Access type: Read-only

Array of all the subnet masks associated with the current network adapter.

Example: "255.255.0"

IPUseZeroBroadcast
Data type: boolean
Access type: Read-only

If TRUE, IP zeros-broadcasts are used (0.0.0.0),and the system uses ones-broadcasts (255.255.255.255). Computer systemsgenerally use ones-broadcasts, but those derived from BSDimplementations use zeros-broadcasts. Systems that do not use that samebroadcasts will not interoperate on the same network. The default is FALSE.

IPXAddress
Data type: string
Access type: Read-only

Internetworking Packet Exchange (IPX) address of the networkadapter. The IPX address identifies a computer system on a networkusing the IPX protocol.

IPXEnabled
Data type: boolean
Access type: Read-only

If TRUE, the or Internetwork Packet Exchange (IPX) protocol is bound and enabled for this adapter.

IPXFrameType
Data type: uint32 array
Access type: Read-only

Array of frame type identifiers. The values in this array correspond to the elements in IPXNetworkNumber.

Value Meaning 0Ethernet II1Ethernet 802.32Ethernet 802.23Ethernet SNAP255AUTO
IPXMediaType
Data type: uint32
Access type: Read-only

Internetworking Packet Exchange (IPX) media type identifier.

Value Meaning 1Ethernet2Token ring3FDDI8ARCNET
IPXNetworkNumber
Data type: string array
Access type: Read-only

Array of characters that uniquely identifies a frame/network adaptercombination on the computer system. The NetWare Link (NWLink)IPX/SPX-compatible transport in Windows 2000 and Windows NT 4.0 andlater use two distinctly different types of network numbers. Thisnumber is sometimes referred to as the external network number. It mustbe unique for each network segment. The order in this string list willcorrespond item-for-item with the elements in the IPXFrameType property.

IPXVirtualNetNumber
Data type: string
Access type: Read-only

Unique identifier of the computer system on the network. It isrepresented in the form of an eight-character hexadecimal digit.Windows NT 4.0/Windows 2000 uses the virtual network number (also knownas an internal network number) for internal routing.

KeepAliveInterval
Data type: uint32
Access type: Read-only
Qualifiers: Units(Milliseconds)

Interval separating Keep Alive Retransmissions until a response isreceived. After a response is received, the delay until the next KeepAlive Transmission is again controlled by the value of KeepAliveTime. The connection will be aborted after the number of retransmissions specified by TcpMaxDataRetransmissions have gone unanswered. Default: 1000, Valid Range: 1 - 0xFFFFFFFF.

KeepAliveTime
Data type: uint32
Access type: Read-only
Qualifiers: Units(Milliseconds)

The KeepAliveTime property indicates howoften the TCP attempts to verify that an idle connection is stillintact by sending a Keep Alive Packet. A remote system that isreachable will acknowledge the keep alive transmission. Keep Alivepackets are not sent by default. This feature may be enabled in aconnection by an application. Default: 7,200,000 (two hours)

MACAddress
Data type: string
Access type: Read-only

Media Access Control (MAC) address of the network adapter. A MACaddress is assigned by the manufacturer to uniquely identify thenetwork adapter.

Example: "00:80:C7:8F:6C:96"

MTU
Data type: uint32
Access type: Read-only
Qualifiers: Units(Bytes)

Overrides the default Maximum Transmission Unit (MTU) for a networkinterface. The MTU is the maximum packet size (including the transportheader) that the transport will transmit over the underlying network.The IP datagram can span multiple packets. The range of this valuespans the minimum packet size (68) to the MTU supported by theunderlying network.

NumForwardPackets
Data type: uint32
Access type: Read-only

Number of IP packet headers allocated for the router packet queue.When all headers are in use, the router will begin to discard packetsfrom the queue at random. This value should be at least as large as theForwardBufferMemory value divided by the maximum IP data size of the networks connected to the router. It should be no larger than the ForwardBufferMemoryvalue divided by 256, since at least 256 bytes of forward buffer memoryare used for each packet. The optimal number of forward packets for agiven ForwardBufferMemory size depends on thetype of traffic on the network. It will be somewhere between these twovalues. If the router is not enabled, this parameter is ignored and noheaders are allocated. Default: 50, Valid Range: 1 - 0xFFFFFFFE

PMTUBHDetectEnabled
Data type: boolean
Access type: Read-only

If TRUE, detection of black hole routers occurswhile TCP discovers the path of the Maximum Transmission Unit. A blackhole router does not return ICMP Destination Unreachable messages whenit needs to fragment an IP datagram with the Don't Fragment bit set.TCP depends on receiving these messages to perform Path MTU Discovery.With this feature enabled, TCP will try to send segments without theDon't Fragment bit set if several retransmissions of a segment gounacknowledged. If the segment is acknowledged as a result, the MSSwill be decreased and the Don't Fragment bit will be set in futurepackets on the connection. Enabling black hole detection increases themaximum number of retransmissions performed for a given segment. Thedefault value of this property is FALSE.

PMTUDiscoveryEnabled
Data type: boolean
Access type: Read-only

If TRUE, the Maximum Transmission Unit (MTU) pathis discovered over the path to a remote host. By discovering the MTUpath and limiting TCP segments to this size, TCP can eliminatefragmentation at routers along the path that connect networks withdifferent MTUs. Fragmentation adversely affects TCP throughput andnetwork congestion. Setting this parameter to FALSE causes an MTU of 576 bytes to be used for all connections that are not to machines on the local subnet. The default is TRUE.

ServiceName
Data type: string
Access type: Read-only

Service name of the network adapter. This name is usually shorter than the full product name.

Example: "Elnkii"

SettingID
Data type: string
Access type: Read-only

Identifier by which the CIM_Setting object is known. This property is inherited from CIM_Setting.

TcpipNetbiosOptions
Data type: uint32
Access type: Read-only

Bitmap of the possible settings related to NetBIOSover TCP/IP. Thisproperty is new for Windows XP. Values are identified in the followingtable.

Value (Dec/Hex) Meaning 0 0x0EnableNetbiosViaDhcp1 0x1EnableNetbios2 0x2DisableNetbios
TcpMaxConnectRetransmissions
Data type: uint32
Access type: Read-only

Number of times TCP attempts to retransmit a Connect Request beforeterminating the connection. The initial retransmission timeout is 3seconds. The retransmission timeout doubles for each attempt. Default:3, Valid Range: 0 - 0xFFFFFFFF.

TcpMaxDataRetransmissions
Data type: uint32
Access type: Read-only

Number of times TCP re-transmits an individual data segment(non-connect segment) before terminating the connection. Theretransmission time-out doubles with each successive retransmission ona connection. Default: 5, Valid Range: 0 - 0xFFFFFFFF.

TcpNumConnections
Data type: uint32
Access type: Read-only

Maximum number of connections that TCP can have open simultaneously. Default: 0xFFFFFE, Valid Range: 0 - 0xFFFFFE.

TcpUseRFC1122UrgentPointer
Data type: boolean
Access type: Read-only

If TRUE, TCP uses the RFC 1122 specification for urgent data. If FALSE(default), TCP uses the mode used by Berkeley Software Design (BSD)derived systems. The two mechanisms interpret the urgent pointerdifferently and are not interoperable. Windows 2000 and Windows NT 3.51and later default to BSD mode.

TcpWindowSize
Data type: uint16
Access type: Read-only
Qualifiers: Units(Bytes)

Maximum TCP Receive Window size offered by the system. The ReceiveWindow specifies the number of bytes a sender may transmit withoutreceiving an acknowledgment. In general, larger receiving windows willimprove performance over high delay and high bandwidth networks. Forefficiency, the receiving window should be an even multiple of the TCPMaximum Segment Size (MSS). Default: Four times the maximum TCP datasize or an even multiple of TCP data size rounded up to the nearestmultiple of 8192. Ethernet networks default to 8760. Valid range: 0 -65535.

WINSEnableLMHostsLookup
Data type: boolean
Access type: Read-only

If TRUE, local lookup files are used. Lookup fileswill contain a map of IP addresses to host names. If they exist on thelocal system, they will be found in %SystemRoot%/system32/drivers/etc.

WINSHostLookupFile
Data type: string
Access type: Read-only

Path to a WINS lookup file on the local system. This file willcontain a map of IP addresses to host names. If the file specified inthis property is found, it will be copied to the%SystemRoot%/system32/drivers/etc folder of the local system. Validonly if the WINSEnableLMHostsLookup property is TRUE.

WINSPrimaryServer
Data type: string
Access type: Read-only

IP address for the primary WINS server.

WINSScopeID
Data type: string
Access type: Read-only

Value appended to the end of the NetBIOS name that isolates a groupof computer systems communicating with only each other. It is used forall NetBIOS transactions over TCP/IP communications from that computersystem. Computers configured with identical scope identifiers are ableto communicate with this computer. TCP/IP clients with different scopeidentifiers disregard packets from computers with this scopeidentifier. Valid only when the EnableWINS method executes successfully.

WINSSecondaryServer
Data type: string
Access type: Read-only

IP address for the secondary WINS server.

 

原创粉丝点击