Partager via


Get method of the MSFT_OdbcDsnTask class

Retrieves one or more ODBC DSNs from the system.

Syntax

uint32 Get(
  [in]  string       Name,
  [in]  string       DriverName,
  [in]  string       Platform,
  [in]  string       DsnType,
  [out] MSFT_OdbcDsn cmdletOutput[]
);

Parameters

Name [in]

Specifies one or more ODBC DSNs by DSN name. You can use wildcard characters. The default is to return all ODBC DSNs.

DriverName [in]

Gets only ODBC DSNs that are using the specified ODBC driver. You can use wildcard characters. The default is to return all ODBC DSNs.

Platform [in]

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

DsnType [in]

The type of the ODBC DSN to retrieve. Possible values are 'User', 'System' or 'All'. The default is 'All'.

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
Header
Wbemcli.h
MOF
WdacWmiProv.mof
DLL
WdacWmiProv.dll

See also

MSFT_OdbcDsnTask

MSFT_OdbcDsn