今天给各位分享sharepoint添加新闻的知识,其中也会对sharepointonline教程进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!本文目录一览: 1、sharepointonli......
2023-12-22 0 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 <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
标签: SharePoint切换经典视图
[免责声明]本文来源于网络,不代表本站立场,如转载内容涉及版权等问题,请联系邮箱:83115484#qq.com,#换成@即可,我们会予以删除相关文章,保证您的权利。转载请注明出处:http://www.tutorialesandroide.com/wps/sharepoint/445.html
相关文章
今天给各位分享sharepoint添加新闻的知识,其中也会对sharepointonline教程进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!本文目录一览: 1、sharepointonli......
2023-12-22 0 sharepoint添加新闻
最近有这么一个需求,就是用到中国的各种行政区,然后还是三级联动,就琢磨写这么一个字段。然后,觉得挺有意义的,写字段的过程也有点心得,就想到拿到博客里分享给大家,一起看看......
2021-06-25 463 SharePoint自定义城市和区域字段
今天给各位分享sharepoint2013权限的知识,其中也会对sharepoint 文件夹权限进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!本文目录一览: 1、需要相应权限......
2023-12-22 0 sharepoint2013权限
本篇文章给大家谈谈sharepoint必须验证域,以及sharepoint登录对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。 本文目录一览: 1、如何解决外网访问内网sharepoint站点的问......
2023-12-21 0 sharepoint必须验证域
本篇文章给大家谈谈sharepoint服务器搭建全过程,以及sharepoint service对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。 本文目录一览: 1、如何在电脑上搭建一个本地服务......
2023-12-18 0 sharepoint服务器搭建全过程