Freigeben über


SetByName method of the MSFT_OdbcDriverTask class

Configure driver\\'s properties for one or more installed ODBC drivers.

Syntax

uint32 SetByName(
  [in]  boolean         PassThru,
  [in]  string          SetPropertyValue[],
  [in]  string          RemovePropertyValue[],
  [in]  string          Name,
  [in]  string          Platform,
  [out] MSFT_OdbcDriver cmdletOutput[]
);

Parameters

PassThru [in]

Passes the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.

SetPropertyValue [in]

Specifies the property values of the ODBC driver to be modified or added. Format as an array of strings where each string is: <key>=<value>.

RemovePropertyValue [in]

Specifies the property values of the ODBC driver to be deleted. This is an array of keys to be removed.

Name [in]

Specifies one or more ODBC drivers by driver name. You can use wildcard characters.

Platform [in]

The platform architecture of the ODBC driver. Possible values are '32-bit', '64-bit' or 'All'. The default is '32-bit' on a 32-bit process and '64-bit' on a 64-bit process. This is the platform architecture on the remote machine if this command is executed in a remote CIM session.

cmdletOutput [out]

The output is an array of CIM objects of type MSFT_OdbcDriver, each of which represents an ODBC driver.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\WDAC
MOF
WdacWmiProv.mof
DLL
WdacWmiProv.dll

See also

MSFT_OdbcDriverTask

MSFT_OdbcDriver