Scenario:
Getting list of Content Type for a site.
Solution:
Get the Web object and enumerate the content types
Code:
$site=spweb "http://localhost"Output:
$web=$site.OpenWeb()
$web.lists | select title,contenttypes
Title
-----
Documents
Images
Master Page Gallery
Pages
Workflow History
Workflow Tasks
Article:
http://blogs.flexnetconsult.co.uk/colinbyrne/2006/12/03/SharePointPowerShell6ApprovingAllPublishingPages.aspx
1 comments:
this is very useful, thank you.
Post a Comment