SetByInputObject method of the MSFT_OdbcDsnTask class

Modifies one or more ODBC DSNs.

Syntax

uint32 SetByInputObject(
  [in]  boolean      PassThru,
  [in]  string       SetPropertyValue[],
  [in]  string       RemovePropertyValue[],
  [in]  MSFT_OdbcDsn InputObject[],
  [out] MSFT_OdbcDsn 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 DSN that you are modifying or adding. Format as an array of strings where each string is: <key>=<value>.

RemovePropertyValue [in]

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

InputObject [in]

Modifies the ODBC DSNs represented by the specified ODBC DSN objects. Enter a variable that contains the objects, or type a command or expression that gets the objects.

cmdletOutput [out]

The output is an array of CIM objects of type MSFT_OdbcDsn, each of which represents an ODBC DSN.

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_OdbcDsnTask

MSFT_OdbcDsn