Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.21 KB

SetSPOPropertyBagValue.md

File metadata and controls

42 lines (34 loc) · 1.21 KB

#Set-SPOPropertyBagValue Topic automatically generated on: 2015-10-13

Sets a property bag value ##Syntax

Set-SPOPropertyBagValue -Key <String> -Value <String> [-Folder <String>] -Value <String> [-Web <WebPipeBind>]
Set-SPOPropertyBagValue -Key <String> -Value <String> -Indexed [<SwitchParameter>] -Value <String> [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
Folder String False Site relative url of the folder. See examples for use.
Indexed SwitchParameter True
Key String True
Value String True
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Set-SPOPropertyBagValue -Key MyKey -Value MyValue

This sets or adds a value to the current web property bag

###Example 2

PS:> Set-SPOPropertyBagValue -Key MyKey -Value MyValue -Folder /

This sets or adds a value to the root folder of the current web

###Example 3

PS:> Set-SPOPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder

This sets or adds a value to the folder MyFolder which is located in the root folder of the current web