Modify site navigation settings in Office 365
using Powershell + CSOM


Posted on September 8th, 2014

In this post you will learn how to modify site navigation settings in Office 365 using Powershell + CSOM.

For setting the navigation we have to use "Microsoft.SharePoint.Client.Publishing.Navigation.WebNavigationSettings" class.

You have to set the Standardnavigationsource property to

  • "portalProvider" for structural Navigation.
  • "taxonomyProvider" for Managed Navigation and
  • "inheritFromParentWeb" to Display the same navigation items as the parent site.

Please check below script below for implementation of modifying SharePoint site navigation settings.

.

Prerequisites:

Below are the list of dlls we need for execution of the script.

  • Microsoft.SharePoint.Client.dll
  • Microsoft.SharePoint.Client.Runtime.dll
  • Microsoft.SharePoint.Client.Taxonomy.dll
  • Microsoft.SharePoint.Client.Publishing.dll

Powershell script:

Conclusion:

In this post you have learned how to modify site navigation settings in Office 365 using Powershell + CSOM.


› Modify site navigation settings in Office 365 using Powershell + CSOM.

About Author

Devendra Velegandla is a four-time recipient of Microsoft's Most Valuable Professional (MVP) award (2014-2017) for Office Servers and Services MVP and  SharePoint Server. He received the MCC award for his contributions in Microsoft MSDN/TechNet forums. He loves sharing articles, videos, and tutorial on SharePoint and Office 365.


If you found this post helpful, please share it with your friends!!


Join 6,000 subscribers and receive instant access to

Devendra's Library of Resources for SharePoint Developers