On http://www.ontolica.com/ (and NO, I am not working
for them!) they have this excellent tool: Sharepoint
Explorer. With this wonderful tool you can browse
through the entire SPS Object Model.
I created a while ago a copy of this SPS Object Model
browser but as webpart, simply to get all the code I
would need bundled in one source. I don't go into
details of this webpart, but you can (referring to the
SDK's) read almost any SPS property through the Object
Model, eg:
StringBuilder sb = new StringBuilder("");
SPGlobalAdmin globalAdmin = new SPGlobalAdmin();
SPVirtualServerCollection servers =
globalAdmin.VirtualServers;
foreach(SPVirtualServer server in servers)
{
sb.Append("
Portal: " +
server.Description.ToString() + "
");
if (server.State == SPVirtualServerState.Ready)
{
SPSiteCollection sites = server.Sites;
foreach(SPSite site in sites)
{
sb.Append("Site: " + site.Url.ToString() + "
");
SPWebCollection webs = site.AllWebs;
foreach(SPWeb web in webs)
{
sb.Append("TeamSite Name: " + web.Name.ToString()
+ "
");
}
}
}
}
return sb.ToString();