Office 365 PowerShell for SharePoint Online
1. Get-SPOTenantLogEntry 并不能获取所有的Log信息,只能用于获取因外部资源而出错的log信息,比如 BCS错误,详情请见此页;
The Get-SPOTenantLogEntry cmdlet cannot retrieve all SharePoint Online errors. This cmdlet retrieves a subset of errors that happen due to external systems. For Beta 2, the only company logs available are for Business Connectivity Services (BCS).
2. Set-SPOSiteGroup 可以用来设置一个 user group 的属性,但是在设置Group的Owner 时,需要注意:如果将一个 user group设置为另一个user group的 owner时,需要使用user group的 User principal name,而不是alias,详情可参考此页;
Set-SPOSiteGroup -Site https://contoso.sharepoint.com -Identity "NewGroup" -Owner <UPN>
3. Set-SPOSite 命令可用于设置一个site的属性,但是,在设置一个site的 ResourceQuota 属性时,新值不能低于 Resource Quota Warning Level,否则会报错;Resource Quota Warning Level 默认情况下和创建站点时设置的 Server Resource Quota 值相同,会随着 Resource Quota值的增加而增加,因此,将 Resource Quota设置为一个小于当前值的数字时,需要使用以下命令:
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -ResourceQuota 150 -ResourceQuotaWarningLevel 150
4.