Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 701 Bytes

File metadata and controls

21 lines (18 loc) · 701 Bytes

#Set-SPODefaultContentTypeToList Sets the default content type for a list ##Syntax

Set-SPODefaultContentTypeToList -List <ListPipeBind> -ContentType <ContentTypePipeBind> [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
ContentType ContentTypePipeBind True
List ListPipeBind True
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Set-SPODefaultContentTypeToList -List "Project Documents" -ContentType "Project"

This will set the Project content type (which has already been added to a list) as the default content type