- WMI Library -
WMI Libraly > Win32_NetworkConnection Class

Win32_NetworkConnection Class

The Win32_NetworkConnection class represents an active network connection in a Win32 environment.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.


  • AccessMask
  • The AccessMask property is a bit array representing the access rights as set remotely on the network share held by the user or group on whose behalf the instance is returned. This property is only supported under Windows NT and Windows 2000.

  • Caption
  • The Caption property is a short textual description (one-line string) of the object.

  • Comment
  • The Comment property contains a comment supplied by the network provider.

  • ConnectionState
  • The ConnectionState property indicates the current state of the network connection.

  • ConnectionType
  • The ConnectionType property indicates the persistence type of the connection used for connecting to the network.
    Example: Permanent.

  • Description
  • The Description property provides a textual description of the object.

  • DisplayType
  • The DisplayType property indicates how the network object should be displayed in a network browsing user interface.
    Example: Generic.

  • InstallDate
  • The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.

  • LocalName
  • The LocalName property indicates the local name of the connected network device.
    Example: c:\public.

  • Name
  • The Name property indicates the name of the current network connection. It is the combination of the value in the RemoteName property and the value in the LocalName property.
    Example: \\NTRELEASE (c:\public).

  • Persistent
  • The Persistent property determines whether this connection will be reconnected automatically by the operating system on the next logon.
    Values: TRUE or FALSE. A value of TRUE indicates the network connection will be automatically connected.

  • ProviderName
  • The ProviderName property contains the name of the provider that owns the resource. This property can be NULL if the provider name is unknown.

  • RemoteName
  • The RemoteName property contains the remote network resource name for a network resource. For a current or persistent connection, RemoteName contains the network name associated with the name of the value in the LocalName property. The name in RemoteName must follow the network provider's naming conventions.
    Example: \\NTRELEASE.

  • RemotePath
  • The RemotePath property contains the full path to the network resource.
    Example: \\infosrv1\public

  • ResourceType
  • The ResourceType property identifies the type of resource to enumerate or connect to.

  • Status
  • The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.

  • UserName
  • The UserName property contains the user name or the default user name used to establish a network connection.
    Example: SYSTEM.


    Method not found.

    Example WQL

    SELECT * FROM Win32_NetworkConnection
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...