We have some files missing on a sub-site from which I have tried to use a script to restore.
I connect to the context using
connect-pnponline giving the specific team address
t5\ts1. I confirm context using
get-pnpweb which is correct.
When I get the recycle bin count using
(get-pnprecyclebin).count it gives me the parent sites recycle bin count and not the current context. Subsequently, if i use
get-pnprecyclebin | restore-pnprecyclebin it will restore items from the Parent, onwards.
How would I specify that I require only items from the current context to be restored. i.e the Sub Site only.