Check all #SharePoint lists and libraries for specified column type in a site collection #SP2010 #PS2010 #ProjectServer #PowerShellJuly 6, 2012 at 12:04 pm | Posted in Administration, Configuration, Information, PowerShell | 1 Comment
Tags: Project Server 2010, PS2010, SharePoint 2010, SP2010
Recently we were carrying out an internal review of our SharePoint 2010 intranet system at CPS and needed to see where the BCS applications were used in the site collection on all sites. Rather than clicking on the list or library settings for each list / library to check for the External Data type on the column settings, I wrote a simple PowerShell script to check this.
The script is available from the Microsoft Script Center below:
To run the script, update the $siteCollection variable with the correct site collection URL and specify the column type, in our case this was External Data.
Once executed, the script will output the data to a text file called sitelists.txt. An example output can be seen below: