Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.35 KB

GetPnPPropertyBag.md

File metadata and controls

50 lines (42 loc) · 1.35 KB

#Get-PnPPropertyBag Returns the property bag values. ##Syntax

Get-PnPPropertyBag [-Folder <String>]
                   [-Web <WebPipeBind>]
                   [-Key <String>]

##Returns

SharePointPnP.PowerShell.Commands.PropertyBagValue

##Parameters

Parameter Type Required Description
Folder String False Site relative url of the folder. See examples for use.
Key String False Key that should be looked up
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Get-PnPPropertyBag

This will return all web property bag values

###Example 2

PS:> Get-PnPPropertyBag -Key MyKey

This will return the value of the key MyKey from the web property bag

###Example 3

PS:> Get-PnPPropertyBag -Folder /MyFolder

This will return all property bag values for the folder MyFolder which is located in the root of the current web

###Example 4

PS:> Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey

This will return the value of the key vti_mykey from the folder MyFolder which is located in the root of the current web

###Example 5

PS:> Get-PnPPropertyBag -Folder / -Key vti_mykey

This will return the value of the key vti_mykey from the root folder of the current web