Some times I stumble upon some heavily modified sites to find out the site template(Team site/Blank site etc) used for provisioning that instance. That's quite easy using the object model but I wondered is it possible through some out-of-the box tool or UI's
Recently came across the WSS RPC methods It has a function called GetProjSchema which does this magic
Authenticate with the web application
Remove all strings after the site name from the address bar and append the following string
/_vti_bin/owssvr.dll?Cmd=GetProjSchema
So if you have application as Foo and it has a site called PWA then the URL might be looking like this
http://Foo/PWA/_vti_bin/owssvr.dll?Cmd=GetProjSchema
GetProjSchema requests the CAML Schema for a Web site, this is a blend of ONET.XML for that specific site definition and some resources which are related to that provisioned site instance. This CAML schema is cached in IIS, so we've retrieved this cached version to find out the site template
This gives more details than required but we are now interested in the site template used, look at the first line "Project Title=". This is the current site template being used
A sample screen snap
Anything which comes OOTB capable of solving real world problems is good. Exploit the rendered CAML . .. .
No comments:
Post a Comment