title: DB2 ODBC via PowerShell
body: <p>I am trying to create the ODBC System DSN 32 bit for DB2 ODBC Driver. Executed as Administrator.</p>
  
  <pre><code>Add-OdbcDsn -Name "PROKEY1" -DriverName "IBM DB2 ODBC DRIVER - DB2COPY1" -DsnType "System" -Platform "32-bit" -SetPropertyValue @("Server=DB-Server", "Trusted_Connection=Yes", "Database=DB")
  </code></pre>
  
  <pre>
  Add-OdbcDsn : Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed
  (Installer error code: 11).
  At line:1 char:1
  + Add-OdbcDsn -Name "PROKEY1" -DriverName "IBM DB2 ODBC DRIVER - DB2COPY1" -DsnTyp
      + CategoryInfo          : NotSpecified: (PROKEY1 (32-bit ODBC System DSN):Root/Microsoft/...SFT_OdbcDsnTask) [Add-OdbcDsn], CimException
      + FullyQualifiedErrorId : MI RESULT 0,Add-OdbcDsn
  </pre>
  
  <p>I am able to create the DSN via the GUI.</p>
  
  <p><code>Get-OdbcDsn</code></p>
  
  <p><code>Name       : PROKEY
  DsnType    : System
  Platform   : 32-bit
  DriverName : IBM DB2 ODBC DRIVER - DB2COPY1
  Attribute  : {}</code></p>