Tired of writing your own code to find all of the databases on a server? Why not use the catalog?
Well, you say, the catalog would be great; except that you can't be guaranteed that they're all there, because databases can be hidden from the catalog.
Ah, but they're all there, just hidden from the views! Make a copy of any one of the 'Database' views and remove
'...& !(DBListInCatalog = "0")'
from the 'View Selection Formula'.
Don't forget to set security on the view to be available only to admins and LocalDomainServers. While you're at it, why not add a column that displays whether or not the database is in the catalog? Set the column property 'Display values as icon'. The formula for that is:
@If(DBListInCatalog = "0";81;82)