有一段時間天使總被問起如何清除活動目錄裡的某些已經不存在的對象
例子是這樣的
一個森林裡有兩個樹
域的控制器崩潰
由於已經格式化或由於某些原因不能正常工作
刪除步驟如下
用管理員賬戶登錄
C:\>ntdsutil
ntdsutil: ?
?
Authoritative restore
Domain management
Files
Help
IPDeny List
LDAP policies
Metadata cleanup
Popups %s
Quit
Roles
Security account management
Semantic database analysis
ntdsutil: Metadata cleanup
metadata cleanup: ?
?
Connections
Help
Quit
Remove selected domain
Remove selected Naming Context
Remove selected server
Select operation target
metadata cleanup: Connections
server connections: ?
?
Clear creds
Connect to domain %s
Connect to server %s
Help
Info
Quit
Set creds %s %s %s
零密碼使用
server connections: Connect to server www
綁定到 www
用本登錄的用戶的憑證連接 www
server connections: q
metadata cleanup: ?
?
Connections
Help
Quit
Remove selected domain
Remove selected Naming Context
Remove selected server
Select operation target
metadata cleanup: Select operation target
select operation target: ?
?
Connections
Help
List current selections
List domains
List domains in site
List Naming Contexts
List roles for connected server
List servers for domain in site
List servers in site
List sites
Quit
Select domain %d
Select Naming Context %d
Select server %d
Select site %d
select operation target: List sites
找到
select operation target: Select site
站點
沒有當前域
沒有當前服務器
當前的命名上下文
select operation target: List domains in site
找到
select operation target: Select domain
站點
域
沒有當前服務器
當前的命名上下文
select operation target: ?
?
Connections
Help
List current selections
List domains
List domains in site
List Naming Contexts
List roles for connected server
List servers for domain in site
List servers in site
List sites
Quit
Select domain %d
Select Naming Context %d
Select server %d
Select site %d
select operation target: List servers for domain in site
找到
select operation target: Select server
站點
域
服務器
DC=mm
DSA 對象
當前的命名上下文
select operation target: q
metadata cleanup: ?
?
Connections
Help
Quit
Remove selected domain
Remove selected Naming Context
Remove selected server
Select operation target
metadata cleanup: Remove selected server
C=com
metadata cleanup: Remove selected domain
metadata cleanup: q
ntdsutil: q
從 www 斷開
C:\>
然後重啟一次
微軟網站有一篇kb是ntdsutil的應用
From:http://tw.wingwit.com/Article/os/fwq/201311/29789.html