Skip to content

Commit

Permalink
Update Restore-PnPRecycleBinItem.md
Browse files Browse the repository at this point in the history
Added information about the new parameter set.  Added example and parameter information.
  • Loading branch information
namwar authored Jan 30, 2025
1 parent aa6dd0e commit 6c4fbef
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions documentation/Restore-PnPRecycleBinItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ Restores the provided recycle bin item to its original location.
Restore-PnPRecycleBinItem -Identity <RecycleBinItemPipeBind> [-Force] [-RowLimit <Int32>]
[-Connection <PnPConnection>]
```
```powershell
Restore-PnPRecycleBinItem -IdList <string[]> [-Connection <PnPConnection>]
```

## DESCRIPTION
This cmdlet restores the specified item from the recycle bin to its original location.
This cmdlet restores the specified item or set of items from the recycle bin to its original location.

## EXAMPLES

Expand All @@ -45,6 +48,13 @@ Get-PnPRecycleBinItem -RowLimit 10000 | Restore-PnPRecycleBinItem -Force

Permanently restores up to 10,000 items in the recycle bin without asking for confirmation.

### EXAMPLE 4
```powershell
Restore-PnPRecycleBinItem -IdList @("31897b05-fd3b-4c49-9898-2e7f10e59cac","b16f0733-9b07-4ef3-a4b6-896edca4babd", "367ef9d2-6080-45ea-9a03-e8c9029f59dd")
```

Restores the recycle bin items with Id 31897b05-fd3b-4c49-9898-2e7f10e59cac, b16f0733-9b07-4ef3-a4b6-896edca4babd, 367ef9d2-6080-45ea-9a03-e8c9029f59dd to their original location.

## PARAMETERS

### -Connection
Expand All @@ -66,7 +76,7 @@ If provided, no confirmation will be asked to restore the recycle bin item.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: (Restore Single Item By Id)

Required: False
Position: Named
Expand All @@ -80,7 +90,7 @@ Id of the recycle bin item or the recycle bin item object itself to restore.
```yaml
Type: RecycleBinItemPipeBind
Parameter Sets: (All)
Parameter Sets: (Restore Single Item By Id)

Required: False
Position: Named
Expand All @@ -90,18 +100,31 @@ Accept wildcard characters: False
```
### -RowLimit
Limits restoration to specified number of items.
Limits restoration to a specified number of items.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: (Restore Single Item By Id)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IdList
String array of Recycle Bin Item Ids
```yaml
Type: String array
Parameter Sets: (Restore Multiple Items By Id)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
## RELATED LINKS
Expand Down

0 comments on commit 6c4fbef

Please sign in to comment.