Enable Recycle Bin
Purpose
The purpose of this solution is to enable the AD Recycle Bin on Domain Controllers. For more details, refer to the Microsoft TechNet Article.
Note: Once you enable the Active Directory Recycle Bin, you cannot turn it off.
Associated Content
Content | Type | Function |
---|---|---|
Role - AD Domain Recycle Bin Feature | Role | Detects if the Recycle Bin feature is enabled on the Infrastructure Master |
AD Recycle Bin State Check | Remote Monitor | A remote PowerShell monitor that detects whether the AD Recycle Bin is enabled or disabled on the Windows Infrastructure Master |
AD - Enable AD Recycle Bin | Script | This script enables the AD Recycle Bin |
△ Custom - Execute Script - AD - Enable AD Recycle Bin | Alert Template | Executes the script AD - Enable AD Recycle Bin - V2 against the computers detected in the monitor set AD Recycle Bin State Check |
Implementation
-
Import the role Role - AD Domain Recycle Bin Feature using the second step of the same document.
- The role will take some time to be detected.
-
Import the following script using the ProSync plugin:
-
Import the following Alert Templates using the ProSync plugin:
△ Custom - Execute Script - AD - Enable AD Recycle Bin
-
Reload the System Cache:
-
Import the AD Recycle Bin State Check monitor following these steps:
- Open a RAWSQL monitor.
- Import the search "DC without Recycle Bin" using the third step in the Import - Remote Monitor - AD Recycle Bin State Check document. Run the provided SQL in the RAWSQL monitor.
- Verify that the search "DC without Recycle Bin" is created successfully.
- Import the monitor AD Recycle Bin State Check using the fourth step in the same document. Run the provided SQL in the RAWSQL monitor.
- The AD Recycle Bin State Check monitor will be automatically created in the "Domain Controllers" group, limited to the search "DC without Recycle Bin," and with the alert template
△ Custom - Execute Script - AD - Enable AD Recycle Bin
. - Ensure that the alert template is running the AD - Enable AD Recycle Bin script.