Skip to content

Instantly share code, notes, and snippets.

@alevyinroc
Last active January 21, 2025 10:51
Show Gist options
  • Select an option

  • Save alevyinroc/ec6619b186e1a80dba4b2df3cd57871c to your computer and use it in GitHub Desktop.

Select an option

Save alevyinroc/ec6619b186e1a80dba4b2df3cd57871c to your computer and use it in GitHub Desktop.
Running Compare-Object on Get-DbaSpConfigure output
$Prod = Get-DbaSpConfigure -SqlInstance PROD -SqlCredential (get-credential -Message "Prod" -UserName MySQLLogin);
$Test1 = Get-DbaSpConfigure -SqlInstance Test1;
Compare-Object -ReferenceObject $Test1 -DifferenceObject $Prod -property ConfigName,RunningValue|Sort-Object ConfigName;
ConfigName RunningValue SideIndicator
---------- ------------ -------------
MaxDegreeOfParallelism 6 =>
MaxDegreeOfParallelism 4 <=
MaxServerMemory 563200 =>
MaxServerMemory 25600 <=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment