Created
April 20, 2018 04:01
-
-
Save adamdriscoll/33c38873cd80ab08ba8e4c7395ed06bb to your computer and use it in GitHub Desktop.
Creates a dashboard that finds SQL PowerShell modules on the PowerShell Gallery
This file contains hidden or 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
Import-Module UniversalDashboard | |
$Dashboard = New-UDDashboard -Title "SQL Modules" -Content { | |
New-UDTable -Title 'SQL Modules' -Headers @("Name", "Version", "Downloads") -Endpoint { | |
Find-Module *SQL* | ForEach-Object { | |
[PSCustomObject]@{ | |
Name = $_.Name | |
Version = $_.Version | |
Downloads = $_.AdditionalMetadata.downloadCount | |
} | |
} | Out-UDTableData -Property @("Name", "Version", "Downloads") | |
} | |
} | |
Start-UDDashboard -Dashboard $Dashboard -Port 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment