Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.19 KB

RestorePnpRecycleBinItem.md

File metadata and controls

34 lines (28 loc) · 1.19 KB

#Restore-PnpRecycleBinItem Restores the provided recycle bin item to its original location ##Syntax

Restore-PnpRecycleBinItem -All [<SwitchParameter>]
                          [-Force [<SwitchParameter>]]
Restore-PnpRecycleBinItem -Identity <RecycleBinItemPipeBind>
                          [-Force [<SwitchParameter>]]

##Parameters

Parameter Type Required Description
All SwitchParameter True If provided all items will be stored
Force SwitchParameter False If provided, no confirmation will be asked to restore the recycle bin item
Identity RecycleBinItemPipeBind True Id of the recycle bin item or the recycle bin item object itself to restore
##Examples

###Example 1

PS:> Restore-PnpRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442

Restores the recycle bin item with Id 72e4d749-d750-4989-b727-523d6726e442 to its original location

###Example 2

PS:> Get-PnPRecycleBinItems | ? FileLeafName -like "*.docx" | Restore-PnpRecycleBinItem

Restores all the items in the first and second stage recycle bins to their original location of which the filename ends with the .docx extension