LoginSignup
1
1

More than 5 years have passed since last update.

PowerShell でインストール済みの ODBC / OLE DB Deiversを取得

Posted at

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'!"

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1