SharePoint Online 切换经典视图
2018-01-31 10:16
260 查看
SharePoint online 默认是现代视图,我们可以通过Powershell命令切换默认视图。
以下,是完成的Powershell命令:
如果保存ps1文件,请注意
参考
https://support.office.com/en-us/article/Switch-the-default-experience-for-lists-or-document-libraries-from-new-or-classic-66dac24b-4177-4775-bf50-3d267318caa9
以下,是完成的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 <username> placeholder. Add-Type -Path "C:\Users\<username>\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Users\<username>\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://<domain>.sharepoint.com/<relative-path-to-website>' $username = '<username>@<domain>.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
参考
https://support.office.com/en-us/article/Switch-the-default-experience-for-lists-or-document-libraries-from-new-or-classic-66dac24b-4177-4775-bf50-3d267318caa9
相关文章推荐
- SharePoint Online 切换经典视图
- SharePoint Online 创建和使用视图
- SharePoint Online 创建和使用视图
- SharePoint Online:软件边界和限制
- Sharepoint online 创建模板与使用模板
- SharePoint Online 创建网站集
- SharePoint Online 设置网站集
- 如何通过flow修正SharePoint Online时差问题
- SharePoint Online 创建资产库
- [SharePoint][SharePoint Designer 入门经典]Chapter13 客户端JavaScript编程
- 使用Host-Provider方式开发的App,无法获取SharePoint Online中的item
- 问题总结(一)使用代码调整SharePoint WebPart 视图和列表菜单
- 通过PowerShell(命令行)来上传并激活solution(.wsp)到SharePoint online环境
- Office 365管理员指引 10 ——SharePoint Online 介绍
- SharePoint Online 创建门户网站系列之创建栏目
- [SharePoint][SharePoint Designer 入门经典]Chapter13 客户端Silverlight编程
- xp 注册表 无法经典/分类视图切换 经典视图
- 问题总结(一)使用代码调整SharePoint WebPart 视图和列表菜单
- SharePoint Online 创建列表库
- SharePoint Online 创建门户网站系列之创建栏目