Created
September 26, 2022 21:33
-
-
Save JohnL4/1b33d601cbb0f07dcaedd16112286949 to your computer and use it in GitHub Desktop.
Get d/b connections from Sisense elasticubes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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