So far I have managed to move Document Sets using PowerShell from Document Library A to Document Library B. I found this article: http://www.sharepoint2010blog.nl/2010/07/20/Moving+A+DocumentSet+Through+Code+Pt1.aspx
It works great but only copies the document set to "Document Library B" root.
$moveurl = $movetoList.RootFolder.ToString() + "/" + $docset.Name
So my question is how do I move it into a hierarchy?
With this I should be able to get the folder:
$web = Get-SPWeb http://url
$list = $web.Lists["name"]
$list.Folders[$afolder]
But I don't know how to edit the $movetoList.RootFolder to that i use $afolder insted of Rootfolder.
Would be awesome if someone could help me out! Thanks in advance!