You need to have some wdac sdk on the server and each machine that you connect to.
$credential = Get-Credential
foreach ($server in @("ESS027521","ESS026412","ESS026488","ESS026191")) {
$session = New-CimSession -ComputerName $server -Credential $credential
$odbc = Get-OdbcDsn -CimSession $session
$server + ":"
$odbc
}
No comments:
Post a Comment