PowerShellを使って、指定のURL以下のサイトコレクションが属するコンテンツDBを取得する方法です。
1 | <span class="lnum"> 1: </span><span class="rem">#最初のパラメータにURLを指定。 </span> |
1 | <span class="lnum"> 2: </span><span class="rem">#ワイルドカード指定可能。</span> |
1 | <span class="lnum"> 3: </span>PS C:UsersAdministrator.SP2010RCENT> get-spsite http://sp2010rcent/* | select url, contentdatabase | format-list |
1 | <span class="lnum"> 4: </span> |
1 | <span class="lnum"> 5: </span>Url : http://sp2010rcent |
1 | <span class="lnum"> 6: </span>ContentDatabase : SPContentDatabase Name=WSS_Content |
1 | <span class="lnum"> 7: </span> |
1 | <span class="lnum"> 8: </span>Url : http://sp2010rcent/my |
1 | <span class="lnum"> 9: </span>ContentDatabase : SPContentDatabase Name=WSS_Content |
1 | <span class="lnum"> 10: </span> |
1 | <span class="lnum"> 11: </span>Url : http://sp2010rcent/docs |
1 | <span class="lnum"> 12: </span>ContentDatabase : SPContentDatabase Name=WSS_Content_Docs |
1 | <span class="lnum"> 13: </span> |
1 | <span class="lnum"> 14: </span>Url : http://sp2010rcent/media |
1 | <span class="lnum"> 15: </span>ContentDatabase : SPContentDatabase Name=WSS_Content_Workspaces |
1 | <span class="lnum"> 16: </span> |
1 | <span class="lnum"> 17: </span>Url : http://sp2010rcent/workspaces |
1 | <span class="lnum"> 18: </span>ContentDatabase : SPContentDatabase Name=WSS_Content_Media |