Home Reference WMI Reference root CIMV2 Win32_IniFileSpecification
 

Win32_IniFileSpecification

This class contains the .INI information that the application needs to set in an .INI file. The .INI file information is written out when the corresponding component has been selected to be installed, either locally or run from source.

Quick Start

Properties

In this WMI class, all WMI properties are read-only. You can only read values but not change them.

Action

Data type UInt16

The type of modification made.

Hexadecimal

Decimal

Modification

0x000

0

Creates or updates a .ini entry.

0x001

1

Creates a .ini entry only if the entry does not already exist.

0x003

3

Creates a new entry or appends a new comma-separated value to an existing entry.

Caption

Data type String

CheckID

Data type String

An identifier used in conjunction with other keys to uniquely identify the check

CheckMode

Data type Boolean

The CheckMode property is used to indicate whether the condition is expected to exist or not exist in the environment. When the value is $true, the condition is expected to exist (e.g., a file is expected to be on a system) so invoke() is expected to return $true. When the value is $false, the condition is not expect to exist (e.g., a file is not to be on a system) so invoke is expected to return $false

CheckSum

Data type UInt32

The Checksum property is a checksum calculated as the 16-bit sum of the first 32 bytes of the file.

CRC1

Data type UInt32

The CRC1 property is the CRC value calculated using the middle 512K bytes.

CRC2

Data type UInt32

The CRC2 is the CRC value for the middle 512K bytes with a offset modulo 3 to the start of the file of zero.

CreateTimeStamp

Data type DateTime

The creation date and time of the file.

Description

Data type String

A description of the objects.

FileSize

Data type UInt64

IniFile

Data type String

A unique key identifying this ini file specification within its product.

key

Data type String

The .ini file key within the section.

MD5Checksum

Data type String

The MD5 algorithm is a well-known algorithm for computing a 128-bit checksum for any file or object. The likelihood of two different files producing the same MD5 checksum is very small (about 1 in 2^64), and as such, the MD5 checksum of a file can be used to construct a reliable content identifier that is very likely to uniquely identify the file. The reverse is also $true. If two files have the same MD5 checksum, it is very likely that the files are identical. For purposes of MOF specification of the MD5 property, the MD5 algorithm always generates a 32 character string. For example: The string abcdefghijklmnopqrstuvwxyz generates the string c3fcd3d76192e4007dfb496cca67e13b. See http://www. rsa.com/pub/rfc1321.txt for details on the implementation of the MD5 algorithm.

Name

Data type String

Either the name of the file or the name of the file with a directory prefix.

Section

Data type String

The .ini file section.

SoftwareElementID

Data type String

This is an identifier for this software element.

SoftwareElementState

Data type UInt16

The software element state of a software element

TargetOperatingSystem

Data type UInt16

The target operating system of the this software element.

Value

Data type String

The value to be written.

Version

Data type String

Version should be in the form .. or .

Methods

Examples

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:29:56 (UTC).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin