-
Notifications
You must be signed in to change notification settings - Fork 403
Updated Get-PnPRecycleBinItem.md #5266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,6 @@ Returns one or more items from the Recycle Bin. | |
|
|
||
| ## SYNTAX | ||
|
|
||
| ### All (Default) | ||
| ```powershell | ||
| Get-PnPRecycleBinItem [-RowLimit <Int32>] [-Connection <PnPConnection>] [-Includes <String[]>] | ||
|
|
||
| ``` | ||
|
|
||
| ### Identity | ||
| ```powershell | ||
| Get-PnPRecycleBinItem [-Identity <Guid>] [-Connection <PnPConnection>] [-Includes <String[]>] | ||
|
|
@@ -53,35 +47,37 @@ This command will return all the items in the recycle bin for the SharePoint sit | |
| Get-PnPRecycleBinItem | ||
| ``` | ||
|
|
||
| Returns all items in both the first and the second stage recycle bins in the current site collection. | ||
| Returns all items in the first stage recycle bin in the current site collection. | ||
|
|
||
|
|
||
| ### EXAMPLE 2 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2 | ||
| Get-PnPRecycleBinItem -SecondStage | ||
| ``` | ||
|
|
||
| Returns a specific recycle bin item by id. | ||
| Returns all items in the second stage recycle bin in the current site collection. | ||
|
|
||
| ### EXAMPLE 3 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -FirstStage | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Examples re-ordered. Example 3 now used to show how to get items from bot first and second stages |
||
| $AllRBItmes = Get-PnPRecycleBinItem -FirstStage | ||
| $AllRBItmes += Get-PnPRecycleBinItem -SecondStage | ||
| ``` | ||
|
|
||
| Returns all items in only the first stage recycle bin in the current site collection. | ||
| Populates `$AllRBItems` with all items in the first and the second stage recycle bins in the current site collection. | ||
|
|
||
| ### EXAMPLE 4 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -SecondStage | ||
| Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Examples re-ordered. Example 4 now used to show how to retrieve a specific file |
||
| ``` | ||
|
|
||
| Returns all items in only the second stage recycle bin in the current site collection. | ||
| Returns a specific recycle bin item by id. | ||
|
|
||
| ### EXAMPLE 5 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -RowLimit 10000 | ||
| ``` | ||
|
|
||
| Returns items in recycle bin limited by number of results. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Examples re-ordered. Example 5 now used to show how to use -RowLimit parameter |
||
| Returns upto 10,000 items from the first stage of the recycle bin in the current site collection. | ||
|
|
||
| ## PARAMETERS | ||
|
|
||
|
|
@@ -100,7 +96,9 @@ Accept wildcard characters: False | |
| ``` | ||
|
|
||
| ### -FirstStage | ||
| Returns all items in the first stage recycle bin | ||
| Returns all items in the first stage recycle bin. | ||
|
|
||
| Note that the `-FirstStage` parameter is implied if neither the `-Identity` or the `-SecondStage` parameters are included. | ||
|
|
||
| ```yaml | ||
| Type: SwitchParameter | ||
|
|
@@ -132,7 +130,7 @@ Limits returned results to specified amount | |
|
|
||
| ```yaml | ||
| Type: Int32 | ||
| Parameter Sets: All, FirstStage, SecondStage | ||
| Parameter Sets: FirstStage, SecondStage | ||
|
|
||
| Required: False | ||
| Position: Named | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Examples re-ordered. Example 2 now used to show how to get items from second stage