How to set Document Set property using Powershell in SharePoint?

Dear All,

I created content type in list1 via PS. Now, I am wondering how to set document set properties like setting Welcome page columns & Shared columns using powershell script. In below PS, I got the content type object but wondering how to get Document set object out of it.

$SiteURL = "http://sitecollection Site URL"
$web = Get-SPWeb $SiteURL
$list = $web.Lists["Documents"]
$contenttype = $list.ContentTypes["ContentType1"]
$xmldocs = $contenttype.XmlDocuments
Write-Host $xmldocs 

# I am getting no error and getting C:\ prompt after running the script.

Please advice.


  • Edited by Birju123 Friday, August 28, 2015 11:35 AM
August 28th, 2015 11:33am

If I am reading this correctly. Why not build the list as you want it, save it as a template and just call that template when you need it?
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 3:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics