In SharePoint tramite il comando:

DOS / Batch file

stsadm -o enumallwebs
è possibile avere un elenco di tutte le site collection e relativi sotto siti divisi per content database.
Ad esempio:

XML

<Site Id="384fd2a9-4152-410c-8fb1-5bc1252bb6fa" OwnerLogin="CONTOSO\zzinati" InSiteMap="True">
      <Webs Count="6">
        <Web Id="2f99f50a-003c-4fdd-be83-76f54b630137" Url="/personal/adgoia" LanguageId="1033" TemplateName="SPSPERS#0" TemplateId="21" />
        <Web Id="ed5d1585-8dfc-4f94-808c-57734ca279a1" Url="/personal/adgoia/bpan" LanguageId="1033" TemplateName="STS#0" TemplateId="1" />
        <Web Id="9abb1b8e-3a03-4221-b00f-67e60cc4c666" Url="/personal/adgoia/continental" LanguageId="1033" TemplateName="STS#2" TemplateId="1" />
      </Webs>
    </Site>
    <Site Id="98f06f86-7cdc-4313-b05c-5c02f343d312" OwnerLogin="CONTOSO\fiana" InSiteMap="True">
      <Webs Count="1">
        <Web Id="075d6f4a-96e6-4de5-9347-ed8d93630302" Url="/personal/guati" LanguageId="1033" TemplateName="SPSPERS#0" TemplateId="21" />
      </Webs>
    </Site>
   ...
  </Database>
</Databases>
Gli switch possibili sono:

DOS / Batch file

PS C:\> stsadm -help enumallwebs

stsadm.exe -o enumallwebs
           [ -databasename <database name>]
           [ -databaseserver <database server name>]
           [ -includefeatures ]
           [ -includesetupfiles ]
           [ -includewebparts ]
           [ -includeeventreceivers ]
           [ -includecustomlistview ]
Aggiungendo gli switch includefeatures, includewebparts e databasename è possibile ottenere un informazione dettagliata su quali feature o webparts sono utilizzate limitando la ricerca ad uno specifico DB:

DOS / Batch file

stsadm -o enumallwebs -databasename SP_Content_Sgart -includefeatures -includewebparts 
in questo caso l'output sarà simile al seguente:

XML

<Databases>
  <Database SiteCount="582" Name="SP_MySites_Content" DataSource="SharePointDB">
    <Site Id="ecca15ba-1f2b-4a0d-9f6f-0012e9d47d63" OwnerLogin="CONTOSO\arzo" InSiteMap="True">
      <Features>
        <Feature Id="695b6570-a48b-4a8e-8ea5-26ea7fc1d162" Count="1" DisplayName="CTypes" InstallPath="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\CTypes" Status="Installed" />
        <Feature Id="c85e5759-f323-4efb-b548-443d2216efb5" Count="1" DisplayName="ExpirationWorkflow" InstallPath="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\ExpirationWorkflow" Status="Installed" />
	...
      </Features>
      <Webs Count="1">
        <Web Id="6cd14f10-c62c-4cb5-96c1-756d019e6d7e0" Url="/personal/dfgee" LanguageId="1033" TemplateName="SPSPERS#0" TemplateId="21">
          <Features>
            <Feature Id="00bfea71-c796-4402-9f2f-0eb9a6e71b18" Count="1" DisplayName="WebPageLibrary" InstallPath="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\WebPageLibrary" Status="Installed" />
		...
          </Features>
          <WebParts>
            <WebPart Id="1a8eda1f-6a8c-d5b9-0a7a-062455488c90" Count="21" Status="Installed" Type="Microsoft.SharePoint.WebPartPages.ListFormWebPart" Safe="True" SafeAgainstScripte="False" AllowRemoteDesigner="True" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
            <WebPart Id="d55b3b6b-6281-707b-73d0-0c49581475ad" Count="1" Status="Installed" Type="Microsoft.Office.Server.Search.WebControls.SearchStatsWebPart" Safe="True" SafeAgainstScripte="False" AllowRemoteDesigner="True" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
	...
          </WebParts>
        </Web>
      </Webs>
    </Site>
...
Tags:
SharePoint498 SharePoint 2007218 SharePoint 2010224
Potrebbe interessarti anche: