by1455的自留地

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

取得 Sharepoint DLL

$path = "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14"

Get-ChildItem $path -recurse |
  Where-Object {$_.name -like "*SharePoint*.dll"} |
  Sort-Object -Property Name -unique |
  Format-Table Name


取得 Sharepoint Farm 参数

Get-SPFarm | Format-List Id, BuildVersion, Servers, Solutions

Delete all of Sites

Get-SPSite -Limit All |
  foreach {
    Remove-SPSite -identity $_.Id
  }


用关键字取得 site 列表 

Get-SPSite -Limit All | where {$_.Url -like "*《key》*"}


取得 features 表

Get-SPFeature -Limit ALL |
  Where-Object {$_.DisplayName -like "*Publishing*"} |
  Sort-Object -Property Scope
  Format-Table DisplayName, Id, Scope

posted on 2010-01-03 21:34  by1455  阅读(228)  评论(0编辑  收藏  举报