Skip to content

Latest commit

 

History

History
135 lines (100 loc) · 2.83 KB

Get-PnPRecycleBinItem.md

File metadata and controls

135 lines (100 loc) · 2.83 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Get-PnPRecycleBinItem

SYNOPSIS

Returns the items in the recycle bin from the context

SYNTAX

Identity

Get-PnPRecycleBinItem [-Identity <GuidPipeBind>]
                      [-Connection <SPOnlineConnection>]

FirstStage

Get-PnPRecycleBinItem [-FirstStage [<SwitchParameter>]]
                      [-Connection <SPOnlineConnection>]

SecondStage

Get-PnPRecycleBinItem [-SecondStage [<SwitchParameter>]]
                      [-Connection <SPOnlineConnection>]

Get-PnPRecycleBinItem [-Includes <String[]>]
                      [-Connection <SPOnlineConnection>]

EXAMPLES

------------------EXAMPLE 1------------------

PS:> Get-PnPRecycleBinItem

Returns all items in both the first and the second stage recycle bins in the current site collection

------------------EXAMPLE 2------------------

PS:> Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2

Returns all a specific recycle bin item by id

------------------EXAMPLE 3------------------

PS:> Get-PnPRecycleBinItem -FirstStage

Returns all items in only the first stage recycle bin in the current site collection

------------------EXAMPLE 4------------------

PS:> Get-PnPRecycleBinItem -SecondStage

Returns all items in only the second stage recycle bin in the current site collection

PARAMETERS

-FirstStage

Return all items in the first stage recycle bin

Type: SwitchParameter
Parameter Sets: FirstStage

Required: False
Position: Named
Accept pipeline input: False

-Identity

Returns a recycle bin item with a specific identity

Type: GuidPipeBind
Parameter Sets: Identity

Required: False
Position: Named
Accept pipeline input: False

-Includes

Specify properties to include when retrieving objects from the server.

Type: String[]
Parameter Sets: 

Required: False
Position: 0
Accept pipeline input: False

-SecondStage

Return all items in the second stage recycle bin

Type: SwitchParameter
Parameter Sets: SecondStage

Required: False
Position: Named
Accept pipeline input: False

-Connection

Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: SPOnlineConnection
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

OUTPUTS

RELATED LINKS

SharePoint Developer Patterns and Practices