Undelete user object from Recycle bin

Hello,

First of all, can we undelete the users from recycle bin to actual OU's using any process like Sync Service, workflow, PS script etc, or let me know any othe process to do the process.


I've a requirement to undelete the user object from the Deleted Objects container. I found following two ways to do this but each one having a road block.

1. Active Roles Sync Service:
By setting the 'edsvaRestoreObject' attribute value of deleted object with TRUE will undelete/restore the user object but I'm unable to scope the Deleted Objects container. Can anyone please let me know how can I get the Deleted Objects container in the scope?

2. Powershell script:
By setting the 'edsvaRestoreObject' attribute value of deleted object to TRUE will undelete\restore the user object but I'm unable to access the objects within the Deleted Objects container. Please let me know the cmdlet to get the objects using powershell script?

Please let me know if you need any other information

Thanks,

Kishore