OLE DB
(New-Object System.Data.OleDb.OleDbEnumerator).GetElements()
ODBC Driver
Get-OdbcDriver
Script
CheckDrivers.ps1
# output location
$scriptPath = Split-Path $MyInvocation.MyCommand.Path
# OLE DB
(New-Object System.Data.OleDb.OleDbEnumerator).GetElements() | Export-Csv -Path (Join-Path $scriptPath "OLE-DBs.csv")
# ODBC Driver
Get-OdbcDriver | Export-Clixml (Join-Path $scriptPath "ODBC-Drivers.xml")
# for check results
#Read-Host -Prompt "Hit enter key for 'owari'!"