Powershell-检查是否在任何网站集中激活了功能 [英] Powershell - Check if a Feature is activated in any site collection

查看:71
本文介绍了Powershell-检查是否在任何网站集中激活了功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能检查以"Abc"开头的特征名称是否存在.在任何网站集中都处于活动状态.我有6个Web应用程序,每个Web应用程序都包含多个网站集.我想检查名称以"Abc"开头的功能是否存在 在任何网站集中都可用.如果是,我想列出那些已激活该功能的网站集

Is it possible to check if a feature name starting with "Abc" is active in any site collection. I have 6 web applications and each of the web application contains multiple site collections. I want to check if a feature whose name starts with "Abc" is available in any of the site collections If yes, I want to list those site collections where the feature is activated

如何使用powershell实现这一目标?

How to use powershell to achieve this?

谢谢

推荐答案

Venkatzeus,

Hi Venkatzeus,

尝试以下脚本以获取状态,

Try below script to get the status,


webapp = Get-SPWebApplication -identity"http://test.contoso.com" 
foreach(
webapp= Get-SPWebApplication -identity "http://test.contoso.com" 
foreach(


站点位于


这篇关于Powershell-检查是否在任何网站集中激活了功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆