- WMI Library -
WMI Libraly > Win32_SoftwareFeature Class

Win32_SoftwareFeature Class

SoftwareFeatures and SoftwareElements: A 'SoftwareFeature' is a distinct subset of a Product, consisting of one or more 'SoftwareElements'. Each SoftwareElement is defined in a Win32_SoftwareElement instance, and the association between a feature and its SoftwareFeature(s) is defined in the Win32_SoftwareFeatureSoftwareElement Association. Any component can be 'shared' between two or more SoftwareFeatures. If two or more features reference the same component, that component will be selected for installation if any of these features are selected.
Namespace value is root/CIMV2.
WMI Provider value is MSIProv.


Properties

  • Accesses
  • Number of times this SoftwareFeature has been used

  • Attributes
  • Remote execution option, one of irsEnum: ifrsFavorLocal = 0: Install components locally, if possible ifrsFavorSource = 1: Install components to run from the source CD/Server, if possible ifrsFollowParent = 2: Follow the remote execution option of the parent feature

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

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

  • IdentifyingNumber
  • Product identification such as a serial number on software or a die number on a hardware chip

  • 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.

  • InstallState
  • The installed state of the software feature.

  • LastUse
  • Last time this SoftwareFeature was used

  • Name
  • The Name property defines the label by which the object is known to the world outside the data processing system. This label is a human-readable name that uniquely identifies the element in the context of the element's namespace.

  • ProductName
  • Commonly used product name

  • 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.

  • Vendor
  • The name of the product's supplier. Corresponds to the Vendor property in the product object in the DMTF Solution Exchange Standard.

  • Version
  • Product version information. Corresponds to the Version property in the product object in the DMTF Solution Exchange Standard.


    Methods

  • Reinstall
  • This method will reinstall the associated instance of Win32_SoftwareFeature using the specified reinstallation mode. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Configure
  • This method will configure the associated instance of Win32_SoftwareFeature to the specified install state. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.


    Example WQL

    SELECT * FROM Win32_SoftwareFeature
    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 -
    http://library.wmifun.net/

    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...