Table of contents
TOC
Collapse the table of content
Expand the table of content

Add-PnPDocumentSet

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Creates a new document set in a library.

Syntax

Add-PnPDocumentSet -List <ListPipeBind>
                   -Name <String>
                   -ContentType <ContentTypePipeBind>
                   [-Web <WebPipeBind>]

Returns

System.String

Parameters

ParameterTypeRequiredDescription
ContentTypeContentTypePipeBindTrueThe name of the content type, its ID or an actual content object referencing to the document set.
ListListPipeBindTrueThe name of the list, its ID or an actual list object from where the document set needs to be added
NameStringTrueThe name of the document set
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Add-PnPDocumentSet -List "Documents" -ContentType "Test Document Set" -Name "Test"

This will add a new document set based upon the 'Test Document Set' content type to a list called 'Documents'. The document set will be named 'Test'

© 2017 Microsoft