![Active Directory Administration Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/629/36698629/b_36698629.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
You can enable the Active Directory Recycle Bin from within the Active Directory Administrative Center, when you're signed in with an account that is a member of the Enterprise Admins group on a domain controller that runs Windows Server with Desktop Experience. To do this, perform the following steps:
- Open the Active Directory Administrative Center (dsac.exe).
- Select the forest name in the left navigation pane.
- In the action pane on the right, click the Enable Recycle Bin link.
Alternatively, you can right-click the domain name in the left navigation pane, and select the Enable Recycle Bin… option from the context menu.
The Enable Recycle Bin Confirmation popup appears:
![](https://epubservercos.yuewen.com/50F576/19470379008810406/epubprivate/OEBPS/Images/7487e686-56e9-4ac1-9e48-858dee743d1d.png?sign=1738883112-j8la2vBMR2aNl3yQN7xyaEBV4i4H94eC-0-0ca5152dc36ab51f2f031c3a3f2ce934)
- In the Enable Recycle Bin Confirmation pop up, click OK.
- The popup message labeled Active Directory Administrative Center appears:
![](https://epubservercos.yuewen.com/50F576/19470379008810406/epubprivate/OEBPS/Images/73c810d4-2b80-4b4f-8d78-fcfc0f48e7e3.png?sign=1738883112-1oOlgFyZli1FJipJUEF3e9Xleg1Ga4TW-0-a5dd554c4b901e833bbed7425a8fe259)
- Click OK:
![](https://epubservercos.yuewen.com/50F576/19470379008810406/epubprivate/OEBPS/Images/7ab0b347-a4b7-4ba5-ad53-a604b3f7735b.png?sign=1738883112-YCHQUaZiWVCGDkE2wUBDeajscOzk4zNw-0-6c0f391f8819c9373daad7e6f8491858)
- After you refresh, a new container underneath the domain root named Deleted Objects appears.
On Server Core installations of Windows Server, use the following PowerShell commands:
Import-Module ActiveDirectory
Enable-ADOptionalFeature -Identity "CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=lucernpub,DC=com" -Scope ForestOrConfigurationSet –Target "lucernpub.com"
Replace lucernpub, lucernpub, and com with values for your Active Directory environment.