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

1 Answer 1


You can do that as below:

Connect-PnPOnline "https://site-url/"
$web = Get-PnPWeb
$web.QuickLaunchEnabled = $true
$web.TreeViewEnabled = $true
# Execute-PnPQuery is working now, but is being deprecated, so use Invoke-PnPQuery
# Execute-PnPQuery
  • Well this is embarrassing, why didn't I try the simplest thing first. Had a look here docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/… and didn't see anything regarding it. Thanks!
    – John Doe
    May 25, 2018 at 6:18
  • Thanks Gautam, this worked. It is strange that even defining the template to not use the quicklaunch, it was always enabled by default
    – Alberto S.
    Feb 26, 2020 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.