问题描述
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
这篇关于启用编辑用户和权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!