Do you know if these SharePoint site/library settings can be determined via PowerShell?

Brass Contributor

Hi All,

 

We have a requirement where below details for a site and sub-sites beneath need to be fetched in an excel format so that it can be used for auditing purpose . As I explored , using the REST API, we can get a ton of information for a site (web object). We can see the XML properties by going to the site and appending “/_api/web” to the end of the URL; but not sure how it can be used in a code so that reports can be generated . Moreover , as mentioned below; we need to fetch libraries detail as well.

 

Subsite Settings

  • EnableMinimalDownload
  • HorizontalQuickLaunch
  • WebTemplate
  • WelcomePage
  • Navigation Elements
    • Enable Quick Launch > True/False
    • Enable Tree View > True/False
  • Navigation
    • Global  Navigation > Option 1-3
    • Current Navigation > Option 1-4
    • Current Navigation > Shown Subsites > True/False
    • Current Navigation > Show Pages > True/False
    • Current Navigation > Maximum number of dynamic items to show in this level of navigation > integer
    • Managed Navigation: Default Page Settings > Add new pages to navigation automatically > True/False
    • Managed Navigation: Default Page Settings > Create Friendly URLs for new pages automatically > True/False
    • Structural Navigation: Sorting > Option 1 or 2
    • Structural Navigation: Sorting > Sort Pages Automatically> True/False
    • Structural Navigation: Automatic Sorting> Sort by:> Text (drop down list)
    • Structural Navigation: Automatic Sorting> Option 1 or 2
    • Structural Navigation: Editing and Sorting > Text (List of headers)
    • Show and Hide Ribbon > Option 1 or 2

 

Library Settings

  • Workflow settings
    • Page Approval
      • Start Options
      • Approvers > Assign To > Text
      • Approvers > Order > Text (drop down list)
      • End of First Rejection > True/False
      • End on Document Change > True/False
      • Enable Content Approval > True/False
  • Versioning Settings
    • Content Approval > Option 1 or 2
    • Document Version History > Create a version each time you edit a file in this document library? > Option 1-3
    • Document Version History > Optionally limit the number of versions to retain > Keep the following number of major versions > True/False
    • Document Version History > Optionally limit the number of versions to retain > Keep the following number of major versions > Integer
    • Document Version History > Optionally limit the number of versions to retain > Keep drafts for the following number of major versions > True/False
    • Document Version History > Optionally limit the number of versions to retain > Keep drafts for the following number of major versions > Integer
    • Draft Item Security > Option 1-3
    • Require Check Out > Option 1 or 2
  • Rating Settings
    • Rating Settings > Option 1 or 2
    • Which voting/rating experience you would like to enable for this list > Option 1 or 2

 

Are you aware of any CSOM script which is capable of doing this or may be some other alternative ?

 

Regards,

Vimmi

1 Reply

Sorry to bump @Vimmi Rawat 's old thread from Sept, but I couldn't help but wonder if "HorizontalQuickLaunch": false is possibly able to finally fix the horizontal quick launch issue on team sites in the Seattle layout ...

 

Who's going to bring the depression? ;)