How can I programmatically determine sites of a SharePoint 2007 installation that use custom code (DLLs, etc)? Or put another way, how can I identify all sites that are not your "standard" document collections, lists, calendars, etc?
Basically, I'm interested in identifying sites that require source code. I don't want to look at the GAC or something and get a list of DLLs, as there could be stale files in there. I want a list of (sites, URLs, whatever) I can navigate to in order to see pages are actually using things, etc.
My company has a bad history of contractors a开发者_运维技巧nd employees who didn't use source control. I need to get a handle on just how bad our situation is...
Hmmm, interesting problem.
I think you could use a little bit of PowerShell script to:
- Iterate the web apps in a farm
- check the root site collection in each web app and see if it's using a custom template
- look for custom site collection features that are active in each site collection of each web app
- look for active custom site features in each site collection
- look at the master page and home page (maybe others) in each site and see if they are customised
- check the web.config for each web app custom safe controls
There's a lot more stuff too I'm sure. There are soo many ways to customise sharepoint this could take a while. If you just want to know if a site is non standard then that's probably easy-ish. If you want an exhaustive list of all the customisations then that would be very hard.
HTH
Cheers
You could use the free Process Explorer (now owned by Ms, was SysInternals) and look the processes (w3wp) and the DLL's it's got open).
精彩评论