Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created September 26, 2022 21:33
Show Gist options
  • Save JohnL4/1b33d601cbb0f07dcaedd16112286949 to your computer and use it in GitHub Desktop.
Save JohnL4/1b33d601cbb0f07dcaedd16112286949 to your computer and use it in GitHub Desktop.
Get d/b connections from Sisense elasticubes
cd N:\SisenseBuilds\Elasticubes
ls */*.xml `
| % {[xml] $xml = cat $_;
# $xml | gm
$xml.Cloud["Cloud.Tables"].Tables.CloudTable `
| % {
# $_ | gm
[PSCustomObject] @{
Server = $_["CloudTable.ConnectionProperties"].SqlServerConnectionProperties.Server;
Database = $_["CloudTable.ConnectionProperties"].SqlServerConnectionProperties.Database
}
}
} | sort Server,Database -uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment