powershell 与SharePoint 2013功能相关的Powershell功能。包括网站集,网站。使用-Site和-Web,您只能获得激活 Posted 2021-05-23
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 与SharePoint 2013功能相关的Powershell功能。包括网站集,网站。使用-Site和-Web,您只能获得激活相关的知识,希望对你有一定的参考价值。
$w = Get-SPWeb http://opwshp02:39816/PWA/TestProject3
$f =Get-SPFeature -Web $w | Sort DisplayName -Unique | FT DisplayName,Id
$f | Out-File "E:\temp\withx.txt"
$f.Count
##get features that are activated
$w = Get-SPWeb http://opwshp02:39816/PWA/TestProject3
Get-SPFeature -Web $w | Sort DisplayName -Unique | FT DisplayName,Id
#for site collection
Get-SPFeature -Site http://opwshp02:39816/PWA | Sort DisplayName | FT DisplayName,Id
##Gets all the features in the farm and puts it in a text file
Get-SPFeature | Sort DisplayName | FT DisplayName,Id | out-file "C:\temp\features.txt"
$TopSiteUrl = 'http://opwshp02:39816/PWA'
$topSite = Get-SPWeb $TopSiteUrl
foreach($s in $topSite.Webs)
{
$s.URL
$fa = Get-SPFeature -Web $w -identity "90014905-433f-4a06-8a61-fd153a27a2b5" -ErrorAction SilentlyContinue
$fb = Get-SPFeature -Web $w -identity "e2f2bb18-891d-4812-97df-c265afdba297" -ErrorAction SilentlyContinue
$fa.Count
$fb.Count
}
Enable-SPFeature -identity "90014905-433f-4a06-8a61-fd153a27a2b5" -URL $u
Enable-SPFeature -identity "e2f2bb18-891d-4812-97df-c265afdba297" -URL $u
以上是关于powershell 与SharePoint 2013功能相关的Powershell功能。包括网站集,网站。使用-Site和-Web,您只能获得激活的主要内容,如果未能解决你的问题,请参考以下文章
powershell 这将获得与SharePoint列表相关的所有工作流
powershell 与SharePoint 2013功能相关的Powershell功能。包括网站集,网站。使用-Site和-Web,您只能获得激活
PowerShell - 读取 SharePoint 文件属性(修改日期等)
powershell 这是SharePoint 2013升级的脚本集合。下划线是与升级过程的关联。
powershell SharePoint Powershell在SharePoint模式下测试Analysis服务。这用于解决SharePoin中的Analysis服务问题
powershell SharePoint网站权限。正在进行的PowerShell项目,以分解sharepoint网站集和所有部分的所有权限