当前位置:雨林木风下载站 > 办公软件教程 > 详细页面

SharePoint Online 如何切换经典视图

SharePoint Online 如何切换经典视图

更新时间:2024-02-09 文章作者:未知 信息来源:网络 阅读次数:

SharePoint发行版本有SharePoint2003、SharePoint2007、Sharepoint 2010、SharePoint2013和SharePoint2016。SharePoint提供了功能强大的团队协作环境,使得组织能够在整个组织内部实现整合、组织、查找和提供 SharePoint站点。

SharePoint online 默认是现代视图,我们可以通过Powershell命令切换默认视图。

  以下,是完成的Powershell命令:


复制代码
# This file uses CSOM. Replace the paths below with the path to CSOM on this computer.
# If CSOM is in the user's downloads folder, you only have to replace the placeholder.

Add-Type -Path "C:\Users\\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Users\\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.Runtime.dll"

# All strings in braces <>are placeholders that you must replace with the appropriate strings.

$webUrl = 'https://.sharepoint.com/'
$username = '@.onmicrosoft.com'
$password = Read-Host -Prompt "Password for $username" -AsSecureString

[Microsoft.SharePoint.Client.ClientContext]$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl)
$clientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
$site = $clientContext.Site;
$customActions = $site.UserCustomActions
$clientContext.Load($customActions)
$clientContext.ExecuteQuery()

$first = $true
foreach($customAction in $customActions)
{
if($customAction.Location -eq "scriptlink" -and -Not ([string]::IsNullOrEmpty($customAction.ScriptBlock)))
{
if ($first)
{
Echo " "
Echo ($webUrl + " has the following inline JavaScript custom actions")
$first = $false
}
Echo $customAction.Title
}
}

复制代码

  如果保存ps1文件,请注意

Note: You can use a different file name, but you must save the file as an ANSI-encoded text file whose extension is .ps1


Sharepoint 可以帮助企业用户轻松完成日常工作。

温馨提示:喜欢本站的话,请收藏一下本站!

本类教程下载

系统下载排行