How do I use a VB script to delete a user object from the Recycle Bin OU in Active Directory? (NETIQKB46464)

  • 7746464
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
How do I use a VB script to delete a user object from the Recycle Bin OU in Active Directory?

goal
Does DRA support using VB scripts on deleted user objects?

fact
Directory and Resource Administrator 6.x

fact
Directory and Resource Administrator 7.x

fix

Yes.  Active Directory regards the Recycle Bin in Directory and Resource Administrator (DRA) as an OU.  If you have native permissions to Active Directory and to the Recycle Bin OU, you can run a VB script to delete objects from the Recycle Bin.



note

Note: If you use a VB script to delete a user object from the Recycle Bin, you cannot restore the object from the Recycle Bin to its original location in Active Directory. Following object deletion, the NetIQRecycleBinObj_<name> object remains in the Recycle Bin OU. This object contains the original OU location and any group memberships associated with the user object. You can delete the NetIQRecycleBinObj_<name> object manually or by using another VB script. 

For more information about objects in the Recycle Bin OU, see the following Knowledge Base article: NETIQKB21415,Two objects are created for each user when a user is moved to the recycle bin.



Additional Information

Formerly known as NETIQKB46464