SharePoint發(fā)行版本有SharePoint2003、SharePoint2007、Sharepoint 2010、SharePoint2013和SharePoint2016。SharePoint提供了功能強(qiáng)大的團(tuán)隊(duì)協(xié)作環(huán)境,使得組織能夠在整個(gè)組織內(nèi)部實(shí)現(xiàn)整合、組織、查找和提供 SharePoint站點(diǎn)。 SharePoint online 默認(rèn)是現(xiàn)代視圖,我們可以通過(guò)Powershell命令切換默認(rèn)視圖。 以下,是完成的Powershell命令: 復(fù)制代碼 # 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 } } 復(fù)制代碼 如果保存ps1文件,請(qǐng)注意 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 可以幫助企業(yè)用戶輕松完成日常工作。
|
溫馨提示:喜歡本站的話,請(qǐng)收藏一下本站!