mardi 30 décembre 2014

Get all the document libraries where IsContentTypeAllowed is enabled



I am using this PowerShell code to get a list of document libraries where allow content type is enabled. But it does not return anything.



Get-SPWeb http://intranet.site.net |
Select -ExpandProperty Lists |
Where { $_.GetType().Name -eq "SPDocumentLibrary" -and
-not $_.Hidden } |
Select -ExpandProperty Items |
Where { $_["IsContentTypeAllowed"] -eq "True" } |
Select Name, url







0 commentaires:

Enregistrer un commentaire