Comments? Questions?

Have a look at my GitHub SharePointOnline-ScriptSamples, where you can find this SharePoint script and 280 others!

You can find all my repositories at PowershellScripts @ GitHub


A short script to get all properties of all content types in all lists across one SharePoint site.

The script is fully described in an article here:



The script is similar to Get all properties of all content types in a SharePoint site with the following differences:

+ In addition to all the default properties it adds also every workflow, field, and fieldLink instance as an additional custom property.

+ It OMITS Mobile properties.

+ It retrieves all list content types (not site).


How to use?

1. Download and install SharePoint Online SDK.

2. Download the .ps1 file.

3. Open the file (you can do it also in NotePad)

4. Insert your data in these lines:



   # Paths to SDK. Please verify location on your computer. 
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"  
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"  
# Insert the credentials and the name of the admin site 
$AdminPassword=Read-Host -Prompt "Password" -AsSecureString 
a) Find on your computer where SharePoint.Clitent.dll and SharePoint.Client.Runtime.dll libraries are located and insert the correct paths
b)  Instead of "" enter you username
c) Instead of "" enter the name of the site collection where you want to find the content types
d) Fill in the properties of the content type.



5. Run the script in Powershell (any module). 

6. Results can be viewed either in Powershell window or exported to csv as a report:



Please share your feedback in the Q&A section!