I copied a document set from a 2010 farm to a 2013 farm (using Explorer on both document libraries). On the destination document library, the document set was converted to a folder content type. I changed the content type to be a document set adding the information from source document library. All the metadata is attached to the folder, but it is still represented as a folder, and has no document set start page. What do I do to get the Document Set working as a document set and not as a folder? Create a document set at destination and just copying the file? Or is there something better to make this work properly?

1 Answer 1


Set the DocumentSet.Folder.Item.ProgId to "SharePoint.DocumentSet". Right now it will be empty. See this for more information: http://www.sharepointnadeem.com/2011/08/sharepoint-2010-document-sets.html

UPDATE Here is the sample PowerShell code. I haven't however tested it:

$web = Get-SPWeb http://yoursite
$list = $web.Lists["YourList"]
$docSetName = "YourDocSetName"
[Microsoft.SharePoint.SPFolder]$targetFolder = $web.GetFolder($list.RootFolder.ServerRelativeUrl + "/$docSetName")
if ($targetFolder.Item.ProgId -eq "")
    $targetFolder.Item.ProgId = "SharePoint.DocumentSet"
  • Super! I guess it's possible to do the same with PowerShell?
    – Benny Skogberg
    Feb 10, 2015 at 8:37
  • 1
    Of course it should be possible. Feb 10, 2015 at 8:38
  • @BennySkogberg, see my updated answer. Feb 10, 2015 at 8:52
  • A good start to build on, if I need to. I'll keep you posted if I needed to change the script. Thanks a lot!
    – Benny Skogberg
    Feb 10, 2015 at 8:55
  • Unfortunately this didn't work. Nothing happened to the folder...
    – Benny Skogberg
    Feb 14, 2015 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.