1、使用Active Directory Module for Windows PowerShell启用
打开管理工具中的Active Directory Module for Windows PowerShell,输入Enable-ADOptionalFeature –Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration, DC=HBYCRSJ,DC=com‘ –Scope ForestOrConfigurationSet –Target ‘hbycrsj.com‘
2、使用LDP.EXE
运行LDP后的有关过程见前面,(使用LDP修改林功能级别)
在Edit Entry Attribute, 输入 enableOptionalFeature
在Values, 输入 CN=Partitions,CN=Configuration,DC=hbycrsj,DC=com:766ddcd8-acd0-445e-f3b9-a7f9b6744f2a
(766ddcd8-acd0-445e-f3b9-a7f9b6744f2a是活动目录回收站的GUID)
选择ADD,选择RUN。

可以通过查看右边的详细信息栏,查看msDS-EnabledFeature属性,发现它的值是 CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration, DC=hbycrsj,DC=com.表明设置成功

