This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# recycle bin's are tied to a site collection so we need a site collection object | |
$site = get-spsite https://webapplication/sitecollection | |
#we can see everything in the recycle bin like this: | |
$site.Recyclebin | |
#unfortunately, the above command dumps quite a lot to the screen. | |
#fortunately, we can pipe the output to other commands for filtering and cleanup. |