Skip to content

Instantly share code, notes, and snippets.

View fabianneve's full-sized avatar

Fabian Neve fabianneve

View GitHub Profile
# 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.