更改AD回收站默认天数

时间:2021-07-26 16:13:25


需要更改两个值,分别是tombstoneLifetime和msDS-DeletedObjectLifetime


Set-ADObject -Identity “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=com” �CPartition “CN=Configuration,DC=contoso,DC=com” �CReplace:@{“tombstoneLifetime” = 365}



Set-ADObject -Identity “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=com” �CPartition “CN=Configuration,DC=contoso,DC=com” �CReplace:@{“msDS-DeletedObjectLifetime” = 365}


可以通过adsiedit.msc查看


本文出自 “追梦赤子心” 博客,请务必保留此出处http://zmczx.blog.51cto.com/7689019/1946166