问题描述
实验室设置:SharePoint2016(内部部署) )环境:
1。是否有任何PowerShell命令或配置可用于MySite和OneDrive for Business的保留策略。
2。是否有任何PowerShell命令可以在浏览器级别为站点强制执行会话超时。已经尝试过以下提到的链接
然而那些没有帮助:
https://gallery.technet.microsoft.com/office/How-to-change-the-session-566ba208#content
PS C:\ Users \ adminmin。test> $ SPSite = Get-SPSite(" http:// testsite:19510 / sites / siteTest")
PS C:\ Users \ administrator.test> $ webApp = $ SPSite.WebApplicationPS C:\ Users \ Administrator;
。 test > $ webApp.Enabled = $ true
在此对象上找不到属性"已启用"。验证该属性是否存在且可以设置。
在行:1 char:1
+ $ webApp.Enabled = $ true
+ ~~~~~~~~~~~~~~~~~~~~~~~~
; + CategoryInfo :InvalidOperation:(:) [],RuntimeException
+ FullyQualifiedErrorId: PropertyAssignmentException
Hi,
Lab Setup: SharePoint2016 (On-premise) Environment:
1. Is there any PowerShell command or configuration available for retention policy for MySite and OneDrive for Business.
2. Is there any PowerShell command to enforce session time-out at browser level for sites. Already tried steps on the below mentioned linkhowever those did not help:
https://gallery.technet.microsoft.com/office/How-to-change-the-session-566ba208#content
PS C:\Users\administrator.test> $SPSite = Get-SPSite("http://testsite:19510/sites/siteTest")
PS C:\Users\administrator.test> $webApp = $SPSite.WebApplicationPS C:\Users\administrator
.test> $webApp.Enabled = $true
The property 'Enabled' cannot be found on this object. Verify that the property exists and can be set.
At line:1 char:1
+ $webApp.Enabled = $true
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
这篇关于SharePoint2016和OneDrive集成。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!