Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

inactive WSS sites

  Asked By: Caitlin    Date: Jul 04    Category: Sharepoint    Views: 922

I need to notify admins of subsites that have not been
active for the past 3 months with an email stating to either activate
the site or for us to delete it. I know that through the Sharepoint
Administration you can set this up but it only works for Top level
sites. We have one top level with a whole bunch of sub sites created.
I have found the following code which loops through all the subsites
and pulls the last date/time the site was active. This is great but it
relies on the person that's admin on the top level site to be part of
the subsites as well. So, is there code out there that can ensure that
without being part of all the subsites I could still be able to
identify inactive sites regardless.

Dim siteCollection As New SPSite "http://server/ToplevelsiteName")
Dim sites As SPWebCollection = siteCollection.OpenWeb
Dim i As Integer

For i = 0 To sites.Count - 1
Response.Write(SPEncode.HtmlEncode(sites(i).Name) & " :: "
& sites(i).Created.ToString() & "<BR>")

Next i



1 Answer Found

Answer #1    Answered By: Jaime Weaver     Answered On: Jul 04

I would definitely be interested in something like this. Any advice?

Didn't find what you were looking for? Find more on inactive WSS sites Or get search suggestion and latest updates.