powershell SharePoint事件接收器powershell脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell SharePoint事件接收器powershell脚本相关的知识,希望对你有一定的参考价值。

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

 #Get the web
 $Web = Get-SPWeb "https://xxxx"

 #Get the Target List
 $List = $Web.Lists["CatsItems"]

 #Retrieve all event receivers associated with the list
 $List.EventReceivers | Select Id, Type, Assembly, Class
  Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
 #Get the web
 $Web = Get-SPWeb "http://spsvde001/tools/cats"

 #Get the Target List
 $List = $Web.Lists["Cats Items"]

 #Retrieve all event receivers associated with the list
 ##$List.EventReceivers #| Select Id, Type, Assembly, Class| out-file
 $List.EventReceivers #| out-file C:\temp\temp.txt
 $r = $List.EventReceivers | Where {$_.ID -eq "133f853e-a53c-47ff-bbae-5ff80c93da6e"}
 $r.Delete()

以上是关于powershell SharePoint事件接收器powershell脚本的主要内容,如果未能解决你的问题,请参考以下文章

检入新添加到样式库的文件的sharepoint 2010事件接收器代码

powershell 这将列出网站中的所有事件接收器

有没有办法在不使用Azure Service Bus的情况下调试SharePoint在线远程事件接收器即提供者托管的应用程序?

SharePoint 全天事件不一致

powershell SharePoint Powershell在SharePoint模式下测试Analysis服务。这用于解决SharePoin中的Analysis服务问题

powershell SharePoint网站权限。正在进行的PowerShell项目,以分解sharepoint网站集和所有部分的所有权限