Add-OdbcDsn -Name "MyAppDSN" -DriverName "ODBC Driver 17 for SQL Server" -DsnType "System" -SetPropertyValue @("Server=MYPC\SQLEXPRESS", "Database=MyDB", "Trusted_Connection=Yes")
⚠️ Requires Windows 7 with PowerShell 5.1 + ODBC module. setup odbc connection windows 7 64 bit
Fill in the driver-specific dialog (example for SQL Server): Add-OdbcDsn -Name "MyAppDSN" -DriverName "ODBC Driver 17 for