Quantcast
Channel: Cannot locate content types
Viewing all articles
Browse latest Browse all 16

Cannot locate content types

$
0
0

Is there a PowerShell script which gives me a list of content types with their located sub site URL in a site collection?

I tried the below script but it only shows me the name of the content types not where they located ( host sub-site URL)

$site = Get-SPSite "My Site URL"

$web = $site.RootWeb

ForEach($ctype in $web.ContentTypes){write-host $ctype.Name": "$ctype.url}

Any suggestion please?



Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>