external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
Returns the items in the recycle bin from the context
Get-PnPRecycleBinItem [-Identity <GuidPipeBind>]
[-Connection <SPOnlineConnection>]
Get-PnPRecycleBinItem [-FirstStage [<SwitchParameter>]]
[-Connection <SPOnlineConnection>]
Get-PnPRecycleBinItem [-SecondStage [<SwitchParameter>]]
[-Connection <SPOnlineConnection>]
Get-PnPRecycleBinItem [-Includes <String[]>]
[-Connection <SPOnlineConnection>]
PS:> Get-PnPRecycleBinItem
Returns all items in both the first and the second stage recycle bins in the current site collection
PS:> Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2
Returns all a specific recycle bin item by id
PS:> Get-PnPRecycleBinItem -FirstStage
Returns all items in only the first stage recycle bin in the current site collection
PS:> Get-PnPRecycleBinItem -SecondStage
Returns all items in only the second stage recycle bin in the current site collection
Return all items in the first stage recycle bin
Type: SwitchParameter
Parameter Sets: FirstStage
Required: False
Position: Named
Accept pipeline input: False
Returns a recycle bin item with a specific identity
Type: GuidPipeBind
Parameter Sets: Identity
Required: False
Position: Named
Accept pipeline input: False
Specify properties to include when retrieving objects from the server.
Type: String[]
Parameter Sets:
Required: False
Position: 0
Accept pipeline input: False
Return all items in the second stage recycle bin
Type: SwitchParameter
Parameter Sets: SecondStage
Required: False
Position: Named
Accept pipeline input: False
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