문제

There are many links that shows how to change the settings for Global and Current navigation and we can use Get-PnPNavigationNode to modify the navigation nodes for the Quick Launch but I can't find anything that enable/disable the Quick Launch and Tree View under Navigation Elements. Is it possible with SharePoint PnP/CSOM?

Image attached for clarificationenter image description here

Thanks in advance

도움이 되었습니까?

해결책

You can do that as below:

Connect-PnPOnline "https://site-url/"
$web = Get-PnPWeb
$web.QuickLaunchEnabled = $true
$web.TreeViewEnabled = $true
$web.Update()
# Execute-PnPQuery is working now, but is being deprecated, so use Invoke-PnPQuery
# Execute-PnPQuery
Invoke-PnPQuery
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top