Get all content types from site collection using PowerShell in SharePoint 2013

Get all content types from site collection using PowerShell in SharePoint 2013
InfoPath alternatives for form designing SharePoint

In this post we will discuss how to get all the cotent types from site collection using PowerShell.

You may like to read:
– Get List Items SPServices Office 365 Sharepoint 2013

– Create List and respective fields programmatically Office 365 SharePoint 2013

– Change calendar event background color in SharePoint 2013

Below is the PowerShell command which will give you all the content types from site collection in SharePoint 2013.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

$site = Get-SPSite http://win-pfcp2dgt8di/sites/EnjoySharePoint/

$web = $site.RootWeb

foreach ($ctype in $web.ContentTypes) {$ctype | Format-Table ID,Name -AutoSize}

It looks like below:

Get all content types from site collection using PowerShell in SharePoint 2013
Get all content types from site collection using PowerShell in SharePoint 2013

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply