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 20 hours 7 minutes ago
August 28th, 2015 7:33am

Put this in ISE. 

You can breakpoint in areas. If you get no Output from your Write-Host it mens your $xmldocs variable is empty.

Free Windows Admin Tool Kit Click here and download it now
August 28th, 2015 9:07am

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

Other recent topics Other recent topics