Pages

Wednesday, 8 November 2017

How to get SharePoint Farm Content Inventory report using PowerShell Script

      Today, in this article we are going to see How to get SharePoint Farm Content Inventory report using PowerShell Script.

This script is comprised of several functions that will collectively inventory content within a SharePoint 2007, 2010, and 2013 farm and generate CSV files that detail the web apps, site collections, webs, lists, and Content Types.  The script will also output groups, unique permisisons at various scopes, workflow associations, etc.

Note that the destination folder should not be your system drive and needs to have enough free space on the disk to accomodate the CSV files (I've seen some large environments generate 2GB of logs).  Also, if you wish to clear prior logs, you can include the -ClearPriorLogs switch.

How to run the below PowerShell script

  1. Copy and paste entire script into 'SharePoint 2013 Management Shall'
  2. Run this command Run-FullInventory -LogFilePrefix "SP2013SP1_SPFarmInventoryReport" -DestinationFolder      "C:\temp\InventoryReport"

Click here to download PowerShell Script


No comments:

Post a Comment