Skip to content

Commit

Permalink
Update runningDatabaseInstances.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesdubois authored Aug 14, 2020
1 parent 87166a4 commit 737c2c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agent/Windows/runningDatabaseInstances.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
$edition = "Unknown"
$edition = "Unknown"
$version = "Unknown"

If (-not (test-path 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server'))
{
exit
}

$inst = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances

$xml += "<SOFTWARES>"
Expand Down

0 comments on commit 737c2c2

Please sign in to comment.