本文介绍了启用编辑用户和权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi 


我有以下代码,但我不知道如何使用它来检查配置审核设置的编辑用户和权限

 

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

$ SiteCollURL = " http://intranet.crescent.com" #获取网站集
$ Site = Get-SPSite $ SiteCollURL #Define Audit Events
$ AuditLogEvents = " Delete" " Update" $ Site .Audit.AuditFlags = $ AuditLogEvents $ Site .Audit.Update()
#Set trim选项s
$ Site .TrimAuditLog = $ TRUE $ Site .AuditLogTrimmingRetention = 10

请帮帮我

谢谢

Mohammad







解决方案

hi 

i have the following code, but i don't know how to use it for checking the editing users and permissions on the configure audit settings

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue $SiteCollURL="http://intranet.crescent.com"#Get the site collection $Site = Get-SPSite $SiteCollURL#Define Audit Events $AuditLogEvents = "Delete", "Update"$Site.Audit.AuditFlags = $AuditLogEvents$Site.Audit.Update() #Set Trimming Options $Site.TrimAuditLog = $TRUE$Site.AuditLogTrimmingRetention = 10

please help me with it

thanks

Mohammad

解决方案


这篇关于启用编辑用户和权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-08 23:40